diff -r 964aa8102804 -r 505c25412b16 icfp-model/src/main/java/ru/bosony/model/game/Game.java --- a/icfp-model/src/main/java/ru/bosony/model/game/Game.java Sun Jul 15 19:26:28 2012 +0400 +++ b/icfp-model/src/main/java/ru/bosony/model/game/Game.java Sun Jul 15 21:20:04 2012 +0400 @@ -114,6 +114,20 @@ && getContent(mine.getCell(nextRobotCoord.left())) == Empty) { moveRobot(nextRobotCell); mine.getCell(nextRobotCoord.left()).setContent(Rock); + } else if (CellContent.getTrampolines().contains(nextRobotCellContent) + && CellContent.getTargets().contains(nextRobotCellContent.getTrampolineTarget())) { + CellContent trampoline = nextRobotCellContent; + CellContent target = trampoline.getTrampolineTarget(); + for (Cell targetCell : mine.findCells(target)) { + moveRobot(targetCell); + } + for (CellContent tramp : CellContent.getTrampolines()) { + if (tramp.getTrampolineTarget() == target) { + for (Cell trampolineCell : mine.findCells(tramp)) { + trampolineCell.setContent(Empty); + } + } + } } else { mov = Movement.WAIT; }