Procedure
init_food/2
Creates food with the specified name and energy level.
Parameters
- name: The name of the food.
- energy: The amount of energy the food contains.
Declaration
init_food :: proc(name: string, energy: int) -> Food
Procedure
init_food/2Creates food with the specified name and energy level.
init_food :: proc(name: string, energy: int) -> Food