1 package ru.bosony.tests;
3 import static org.junit.Assert.*;
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;
13 * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
17 public class TestGame {
20 public void testMapFromTask() {
21 String map = ExampleMaps.MAP_FROM_TASK.getMap();
22 Mine mine = new Mine(map);
23 Game game = new Game(mine);
24 String route = "DDDLLLLLLURRRRRRRRRRRRDDDDDDDLLLLLLLLLLLDDDRRRRRRRRRRRD";
25 assertEquals(game.move(route), GameState.Win);