icfp-model/src/test/java/ru/bosony/tests/TestTrampolines.java
changeset 27 505c25412b16
equal deleted inserted replaced
26:964aa8102804 27:505c25412b16
       
     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 }