:-module(ics,[ics/2]). ics([e(pirate(N,Vote,Mon,1),T),e(pirate(N,Vote1,Mon1,1),T1),T1=T+1], [[Mon>Mon1,Vote=1], [Mon=N-T], [[Mon=0,Vote=0,Alive=0]]). ics([h(start(M,N),0),e(pirate(PirID,Vote,Mon,Alive),T),PirID-1