LIFE A
//function: eat,find,consume,discharge
//find while true return(call consume in each loop)
//eat=material+ and energy+
//find,discharge=material- and energy-
material food<-find->LIFE A->eat->[material x(100),energy y(99)]->[consume(material x(5),energy y(3)),discharge(material x(3),energy y(1))]
if A.material>10 ‖ A.energy>5{
return "healthy"
}else if(A.material>0 ‖ A.energy>0){
return "alive"
}else{
return "game over"
}