icfp-model/src/test/java/ru/bosony/tests/TestTrampolines.java
author indvdum (gotoindvdum[at]gmail[dot]com)
Sun, 15 Jul 2012 21:20:04 +0400
changeset 27 505c25412b16
permissions -rw-r--r--
Add trampolines and targets
     1 package ru.bosony.tests;
     2 
     3 import static org.junit.Assert.assertEquals;
     4 
     5 import org.junit.Test;
     6 
     7 import ru.bosony.model.game.Game;
     8 import ru.bosony.model.game.GameState;
     9 import ru.bosony.model.maps.ExampleMaps;
    10 import ru.bosony.model.mine.Mine;
    11 
    12 /**
    13  * @author 	indvdum (gotoindvdum[at]gmail[dot]com) <br>
    14  * 			15.07.2012 20:51:52
    15  *
    16  */
    17 public class TestTrampolines {
    18 
    19 	@Test
    20 	public void test() {
    21 		String map = ExampleMaps.MAP_FROM_TRAMPOLINES_TASK.getMap();
    22 		Mine mine = new Mine(map);
    23 		Game game = new Game(mine);
    24 		assertEquals(game.move("DLLLRDDDLLURRRUUULLU"), GameState.Win);
    25 	}
    26 
    27 }