tests: add pig_the_dice_game
authorJean Privat <jean@pryen.org>
Tue, 23 Jun 2015 00:04:25 +0000 (20:04 -0400)
committerJean Privat <jean@pryen.org>
Tue, 23 Jun 2015 00:12:33 +0000 (20:12 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/pig_the_dice_game.inputs [new file with mode: 0644]
tests/sav/pig_the_dice_game.res [new file with mode: 0644]

diff --git a/tests/pig_the_dice_game.inputs b/tests/pig_the_dice_game.inputs
new file mode 100644 (file)
index 0000000..b338c4c
--- /dev/null
@@ -0,0 +1,39 @@
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+0
+1
+1
+1
+0
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
diff --git a/tests/sav/pig_the_dice_game.res b/tests/sav/pig_the_dice_game.res
new file mode 100644 (file)
index 0000000..d9a44a4
--- /dev/null
@@ -0,0 +1,217 @@
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 6
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 3
+score this turn: 9
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 5
+score this turn: 14
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 5
+score this turn: 19
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 25
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 2
+score this turn: 27
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 3
+score this turn: 30
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 5
+score this turn: 35
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 2
+score this turn: 37
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 41
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 3
+score this turn: 44
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 48
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 3
+score this turn: 51
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 55
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 61
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 67
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 71
+
+Player 1
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+Scored: 71
+New Score: 71
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 5
+score this turn: 5
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 1
+Total score : 71
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 4
+
+Player 1
+Total score : 71
+What do you want to do? ("1" to roll, "0" to hold)
+Scored: 4
+New Score: 75
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 2
+score this turn: 2
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 5
+score this turn: 5
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 3
+score this turn: 3
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 2
+Total score : 0
+What do you want to do? ("1" to roll, "0" to hold)
+You rolled 1! all points lost for this turn
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 6
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 2
+score this turn: 8
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 12
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 6
+score this turn: 18
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 22
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 2
+score this turn: 24
+
+Player 1
+Total score : 75
+What do you want to do? ("1" to roll, "0" to hold)
+rolled: 4
+score this turn: 28
+
+Congratulation Player 1! You won with 75 points!