Created
August 10, 2019 17:58
-
-
Save topherPedersen/11ae272fad64082dc4de989bd78e5661 to your computer and use it in GitHub Desktop.
Tic Tac Toe Starter Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Welcome to Noel's Ultimate Tic Tac Toe Experience") | |
spot1 = "1" | |
spot2 = "2" | |
spot3 = "3" | |
spot4 = "4" | |
spot5 = "5" | |
spot6 = "6" | |
spot7 = "7" | |
spot8 = "8" | |
spot9 = "9" | |
def print_board(): | |
global spot1 | |
global spot2 | |
global spot3 | |
global spot4 | |
global spot5 | |
global spot6 | |
global spot7 | |
global spot8 | |
global spot9 | |
print(spot1 + " | " + spot2 + " | " + spot3) | |
print("---------") | |
print(spot4 + " | " + spot5 + " | " + spot6) | |
print("---------") | |
print(spot7 + " | " + spot8 + " | " + spot9) | |
print_board() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment