Closed otizonaizit closed 1 month ago
Several ideas. We could start with the simplest:
General idea: Food pellets that lay under a defender' shadow (±5?) for too long (15×4 turns?) disappear and are randomly relocated
Implementation:
food_lifetime
{ food_coord : eta }
game_state
eta == 15×4
play_turn
eta = eta - 1
eta==0
FoodRelocated
game_state['food'] and game_state['food_lifetime']
Several ideas. We could start with the simplest:
General idea: Food pellets that lay under a defender' shadow (±5?) for too long (15×4 turns?) disappear and are randomly relocated
Implementation:
food_lifetime
mapping{ food_coord : eta }
ingame_state
, which is initialized witheta == 15×4
play_turn
loop through the food and create a new mappingfood_lifetime
eta = eta - 1
.eta==0
: relocate foodFoodRelocated
could be generated for the viewers to consumegame_state['food'] and game_state['food_lifetime']