What are the benefits of using cronjobs for rundenbasiert (turn-based) games and how can they be optimized for specific tasks like resource delivery?

Using cronjobs for turn-based games allows for automated tasks to be run at specific intervals, such as resource delivery or updating game states. To optimize resource delivery, you can create a cronjob that checks for pending deliveries and processes them at regular intervals.

```php
// Check for pending resource deliveries every hour
0 * * * * /usr/bin/php /path/to/your/script.php
```

In the `script.php` file, you can query the database for pending deliveries and process them accordingly. This ensures that resources are delivered consistently and efficiently in your turn-based game.