week0/tictactoe/tictactoe.py
def terminal(board):
    """
    Returns True if game is over, False otherwise.
    """
    # game is won by one of the players
    if winner(board) != None:
        return True

    # moves still possible
    for row in board:
        if EMPTY in row:
            return False

    # no possible moves
    return True

    Returns True if game is over, False otherwise.
    
Returns True if game is over, False otherwise.
Returns True if game is over False otherwise .
def terminal(board):
    if winner(board) != None:
        return True
    for row in board:
        if EMPTY in row:
            return False
    return True
def terminal ( board ) : if winner ( board ) != None : return True for row in board : if EMPTY in row : return False return True
Returns True if game is over, False otherwise.
Returns True if game is over False otherwise .
"""
    Returns True if game is over, False otherwise.
    """ # game is won by one of the players # moves still possible # no possible moves
board