fixed moveTest
This commit is contained in:
parent
f6bef6fdde
commit
d75a05f998
@ -46,7 +46,5 @@ public class Menu {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ public class Tester {
|
||||
boolean moveTest() throws IOException{
|
||||
boolean success = true;
|
||||
|
||||
loadMap("moveTest");
|
||||
loadMap("moveTest.dungeon");
|
||||
|
||||
String listOfPlayers = listPlayers();
|
||||
if(!listOfPlayers.equals("ONeill: 1, 1 Jaffa: -666, -666 Replicator: -666, -666"))
|
||||
@ -171,7 +171,7 @@ public class Tester {
|
||||
boolean testStargates() throws IOException{
|
||||
boolean success = true;
|
||||
|
||||
loadMap("testStargates");
|
||||
loadMap("testStargates.dungeon");
|
||||
shootONeillsGun("B");
|
||||
rotate("O", "L");
|
||||
shootONeillsGun("Y");
|
||||
@ -200,7 +200,7 @@ public class Tester {
|
||||
boolean testScalesAndGates() throws IOException {
|
||||
boolean success = true;
|
||||
|
||||
loadMap("testScalesAndGates");
|
||||
loadMap("testScalesAndGates.dungeon");
|
||||
boxLift("O");
|
||||
rotate("O", "L");
|
||||
boxDrop("O");
|
||||
@ -221,7 +221,7 @@ public class Tester {
|
||||
@Test
|
||||
boolean gapTest() throws IOException{
|
||||
|
||||
loadMap("gapTest");
|
||||
loadMap("gapTest.dungeon");
|
||||
move("O");
|
||||
|
||||
boolean success = oneill.isDestroyed();
|
||||
@ -238,7 +238,7 @@ public class Tester {
|
||||
boolean ZPMTest() throws IOException{
|
||||
boolean success = true;
|
||||
|
||||
loadMap("ZPMTest");
|
||||
loadMap("ZPMTest.dungeon");
|
||||
move("O");
|
||||
|
||||
if(oneill.getZPMCount() != 1)
|
||||
@ -289,7 +289,7 @@ public class Tester {
|
||||
boolean rotationTest() throws IOException {
|
||||
boolean success = true;
|
||||
|
||||
loadMap("rotationTest");
|
||||
loadMap("rotationTest.dungeon");
|
||||
|
||||
if(!rotate("O", "L").equals("WEST"))
|
||||
success = false;
|
||||
@ -309,7 +309,7 @@ public class Tester {
|
||||
boolean testBoxes() throws IOException{
|
||||
boolean success = true;
|
||||
|
||||
loadMap("testBoxes");
|
||||
loadMap("testBoxes.dungeon");
|
||||
|
||||
if(!boxLift("O").equals("box lifted"))
|
||||
success = false;
|
||||
|
@ -1,8 +1,8 @@
|
||||
5x5
|
||||
|
||||
W W W W W
|
||||
W O F J W
|
||||
W O F F W
|
||||
W F F F W
|
||||
W F F F W
|
||||
W F R F W
|
||||
W W W W W
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user