Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Trent
- # 19/06/2019
- # Noughts and Crosses Game
- # STEPS:
- # 1 - Create board
- # 2 - Display board
- # 3 - Ask user to pick spot
- # 4 -
- # 5 -
- # ♣♦
- #if choose == "G" or choose == "g":
- # print(player)
- # print(bot)
- # print(border)
- # print(border2)
- # input("What would you like to do?\n[P] Change Player Icon\n[B] Change Bot Icon\n[B] Change Border Icon\n[S] Change Seperator Icon\n[R] Return\n:>")
- #vars
- import random
- selectedgrid = 0 # ignore pls
- player = "♣"
- bot = "♦"
- winner = "false"
- # Step 1: Create the board
- # T1 T2 T3 M1 M2 M3 B1 B2 B3
- board = [["1", "2", "3"],["4", "5", "6"],["7", "8", "9"]]
- print(*board[0], sep = " # ")
- print("#########")
- print(*board[1], sep = " # ")
- print("#########")
- print(*board[2], sep = " # ")
- # Step 2: Display the board
- print(*board[0], sep = " # ")
- print("#########")
- print(*board[1], sep = " # ")
- print("#########")
- print(*board[2], sep = " # ")
- # Step 3: whatever step 3 was
- choose = input("What do you want to do?\n[M] - Move\n[O] - Options\n[Q] - Quit\n[")
- if choose == "M" or choose == "m":
- print(*board[0], sep = " # ")
- print("#########")
- print(*board[1], sep = " # ")
- print("#########")
- print(*board[2], sep = " # ")
- while winner == "false":
- posx = input("Enter the x number of where you want to move")
- posy = input("Enter the y number of where you want to move")
- posx = posx + 1
- posy = posy + 1
- board[posx][posy] = player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement