
# A two-player board game, like tic-tac-toe, chess, etc:

board = [ [...], [...], [...], ... ]

def printBoard():
    """printBoard  prints a representation of the board on the display"""
    for row in board :
        for square in row :
            print square,
        print
    print

def makeMove(who) :
    """makeMove gets a player's next move and tries to make the move.
       parameter: who - a string identifying the player ("X" or "O")
    """
    move = raw_input("Player" + who + " : Type the coordinates of the move: ")
    coordinates = move.split(",")
    row_coordinate = int(coordinates[0])
    column_coordinate = int(coordinates[1])
    # do the "who" move ... to come


#########

game_on = True

while game_on :
    printBoard()
    makeMove("X")
    makeMove("O")

printBoard()

# We placed the refinement of ``print the board'' within 
#   a function so that the main control loop reads almost 
#   identically to the algorithm we wrote ---
# the function names match the steps in the original algorithm

