-
Notifications
You must be signed in to change notification settings - Fork 0
/
arnkmish-hw1-output.txt
104 lines (87 loc) · 1.85 KB
/
arnkmish-hw1-output.txt
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
* ARNAB KUMAR MISHRA (ARNKMISH) *
arnkmish@arnab-PC:~$ cd Documents/
arnkmish@arnab-PC:~/Documents$ python arnkmish-hw1.py
Please enter X to play as X or O to play as O: x
| |
| |
| |
X 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 5
O | |
| X |
| |
X 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 3
O | | O
| X |
| | X
X 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 8
O | X | O
| X |
| O | X
X 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 6
O | X | O
O | X | X
| O | X
X 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 1
Draw
O | X | O
O | X | X
X | O | X
arnkmish@arnab-PC:~/Documents$ python arnkmish-hw1.py
Please enter X to play as X or O to play as O: o
| |
| X |
| |
O 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 8
| O |
| X |
X | |
O 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 9
X | O | O
| X |
X | |
O 's turn
Please select position by typing in a number between 1 and 9, see below for which number that is which position...
7|8|9
4|5|6
1|2|3
Select: 3
X won!!!
X | O | O
X | X |
X | | O
arnkmish@arnab-PC:~/Documents$