Allen Chen

Generation

fix invalid codeSun, 02 Apr 2023

import time import random print('you are helping an army. if you don't send supplies, you would die. if the food drops to 0 all would die. if you run out of iron, the army could not fight. you will start with 100 food and 100 iron. it takes 10 seconds to produce 1 food.') def ac (x,y) f=x i=y print('food:'f 'iron:'i) def gc (x) if f<=0: print('fail!')

### Basic usage

Questions about programming?Chat with your personal AI assistant