Closed srgbl closed 5 years ago
This task was merged with develop
. Please check files.
P.S. branch task_03
vm_task_03 write game environment structure init fields with ft_bzero, Fields:
visual handle option for run program in visual mode
players_nbr store number of players
dump = -1; After this number of cycles program stops and print memory dump
alive This field store link to last player which considered to be alive. This field init with max player number.
cycles store the number of cycles have passed since the beginning of the game
lives store how many times 'live' was executed since last checkin
cycles_to_die amount of cycles between two checkins. This field inits with CYCLE_TO_DIE constant
checkin_nbr amount of checkins have passed since the beginning of the game
Init game environment structure t_game with init_game(): fields initial with ft_bzero, except: game.dump = -1;