Skip to content

Instantly share code, notes, and snippets.

@VolviX
VolviX / TicTacToe.py
Last active February 10, 2018 19:50
My first game. A simple Tic Tac Toe!
from os import system #to clear the screen
from random import randint #to generate random number
def player_mark(mark): #selection of the marks
while True:
mark = input("Player 1 choose your mark (X/O): ")
if mark == "X" or mark == "x" or mark == "O" or mark == "o":
mark = mark.upper()
if mark == "X":