preventing players from changing existing entries in tic tac toe game

Solutions on MaxInterview for preventing players from changing existing entries in tic tac toe game by the best coders in the world

showing results for - "preventing players from changing existing entries in tic tac toe game"
Yahir
06 Jan 2017
1# Checking whether the position on the tic tac board is occupied or not.
2def place_marker(board, marker, position):
3    if board[position] == ' ':
4        board[position] = marker
5    else:
6        print("That space is already occupied.")
7