PY
py
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
'''
Hush , yet another code which cant be run on Sololearn , again the same reason! It takes inputs at multiple stages which is not supported on sololearn. Run it on any other IDE or Pydroid3 app if you are comfortable on phone.
Small tasks to be done -
create board
display board
handling turn
flip player('X' and 'O')
the game itself - win ? , tie ?
parameters of winning - #rows #columns #diagonals
check_if_game_over functions
----------------------------------------------- PlEASE READ THIS !!!------------------------------------------
This game has not been created by only my own imagination . It was made by seeing a youtube tutorial by clever programmer. I just tried to reimplement it , so technically I have just "modified" this code.
'''
# THE BOARD
board = [ '-', '-', '-',
'-', '-', '-',
'-', '-', '-',]
# DISPLAYING THE BOAR
game_still_going = True
current_player = 'X'
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run