Skip to content

Commit

Permalink
added testpalya.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mackmarton committed May 22, 2024
1 parent 159957d commit 19c4b01
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/main/java/StepDefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class StepDefs {

@Given("A jatek inicializalasra kerult")
public void gameInitialized() {
Controller.load("src/testpalya.txt");
Controller.load("test/resources/testpalya.txt");

Controller.Run();
Controller.create();
Expand Down
23 changes: 23 additions & 0 deletions test/resources/testpalya.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cistern cistern2 water:0 draw:100:100
spring spring2 2000 draw:650:100
pump A 200 water:20 broken:true draw:200:100
pump B 200 water:10 draw:500:100
pump C 200 water:50 draw:575:200
pipe AC2 100 draw:225:125:125:125
pipe AB 100 draw:225:125:525:125
pipe BS2 100 draw:525:125:675:125
pipe CB 100 draw:600:225:525:125
connectpipe AC2 A
connectpipe AC2 cistern2
connectpipe AB A
connectpipe AB B
connectpipe BS2 B
connectpipe BS2 spring2
connectpipe CB B
connectpipe CB C
setpump A AB AC2
setpump B BS2 AB
mechanic Mec1 A
addplayer A Mec1
saboteur Sab1 AB
addplayer AB Sab1

0 comments on commit 19c4b01

Please sign in to comment.