-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathout1
42 lines (28 loc) · 712 Bytes
/
out1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Welcome to Nim
$Are you sure you want to remove all players? (y/n)
$'createplayer' is not a valid command.
$Incorrect number of arguments supplied to command.
$
$The player already exists.
$Are you sure you want to remove all players? (y/n)
$
$
$
Initial stone count: 4
Maximum stone removal: 2
Player 1: George Washington
Player 2: John Adams
4 stones left: * * * *
George's turn - remove how many?
Invalid move. You must remove between 1 and 2 stones.
4 stones left: * * * *
George's turn - remove how many?
3 stones left: * * *
John's turn - remove how many?
2 stones left: * *
George's turn - remove how many?
1 stones left: *
John's turn - remove how many?
Game Over
George Washington wins!
$