Пример #1
0
 private void forgetZombiesFromLastTurn() {
   zombieMemory.clear();
 }
Пример #2
0
 private boolean sawZombieLastTurn(RobotInfo zombie) {
   return zombieMemory.contains(zombie.ID);
 }
Пример #3
0
 private void rememberZombiesFromThisTurn() {
   for (RobotInfo zombie : nearbyZombies) {
     zombieMemory.add(zombie.ID);
   }
 }