https://github.com/santosh2702/tic-toc-toe
game
https://github.com/santosh2702/tic-toc-toe
python2
Last synced: 11 months ago
JSON representation
game
- Host: GitHub
- URL: https://github.com/santosh2702/tic-toc-toe
- Owner: santosh2702
- Created: 2018-04-07T05:39:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T18:23:19.000Z (over 7 years ago)
- Last Synced: 2025-02-17T07:32:38.268Z (about 1 year ago)
- Topics: python2
- Language: Python
- Size: 163 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Toc-Toe:

## About:
Game using python Basics Tuples,Dictionary,Lists and etc.

Using jupyter notebook tictoctoe game
# Possible Cases:

Many more!
# Codes:
## Use of while loops and the functions you've made to run the game!
while game_on:
if turn == 'Player 1':
display_board(theBoard)
position = player_choice(theBoard)
place_marker(theBoard, player1_marker, position)
if win_check(theBoard, player1_marker):
display_board(theBoard)
print('Congratulations! You have won the game!')
game_on = False
else:
if full_board_check(theBoard):
display_board(theBoard)
print('The game is a draw!')
break
else:
turn = 'Player 2'
else:
display_board(theBoard)
position = player_choice(theBoard)
place_marker(theBoard, player2_marker, position)
if win_check(theBoard, player2_marker):
display_board(theBoard)
print('Player 2 has won!')
game_on = False
else:
if full_board_check(theBoard):
display_board(theBoard)
print('The game is a tie!')
break
else:
turn = 'Player 1'
if not replay():
break

