package net.ciklum.icfpc11.controller.ai import net.ciklum.icfpc11.parser.Command /** * blabla * @author vic */ @Typed final class OpponentActivityMonitor { private final List cellHeat OpponentActivityMonitor() { this.cellHeat = (0..255).collect{0} } void commandIssued(Command c) { for (int i=0; i < cellHeat.size(); i++) { cellHeat[i] = (cellHeat[i] * 9).intdiv(10) } cellHeat[c.slotNumber] += 100 } void weAreHit() { // TODO: find out what we're hit with, and are there copies. } }