This file contains hidden or 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
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": |