Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

preventing players from changing existing entries in tic tac toe game

# Checking whether the position on the tic tac board is occupied or not.
def place_marker(board, marker, position):
    if board[position] == ' ':
        board[position] = marker
    else:
        print("That space is already occupied.")
  
 
PREVIOUS NEXT
Tagged: #preventing #players #changing #existing #entries #tic #tac #toe #game
ADD COMMENT
Topic
Name
4+7 =