Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Created on 11/11/2014
- tictactoe
- Proven and tested on python 3.3.3
- @author: A01221672
- '''
- board = [["e","e","e"],["e","e","e"],["e","e","e"]]
- winCon = [["x","x","e"],["x","e","x"],["e","x","x"]]
- win = False
- while not (win):
- print("Tic tac toe")
- re1 = int(input("heigh input: "))
- re2 = int(input("width input: "))
- if board[re1][re2] != "o":
- board[re1][re2] = "x"
- print(board)
- for x in board:
- for y in winCon:
- if y == x:
- print("YES")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement