SIZE_X = 200
SIZE_Y = 200


# Holds board values and player head values
class GameState:

    # Create empty board and player states
    def __init__(self):
        self.board = [[0] * SIZE_Y] * SIZE_X

        # players[player_number] = [head_x, head_y, direction, alive])
        self.players = {}

    # Called by server to set player direction on request
    def set_direction(self, player_number, direction):
        if player_number in player.keys():
            players[player_number][2] = direction

    # Called by server to update the game state
    def tick(self):
        pass

    # Called by server to add a new player, returns player number
    def create_new_player(self):
        pass

    # Randomizes players on the edge of the board
    def randomize_positions(self):
        pass

66ec09c75f2d6367e5701136927ab1a287dd8faf
<mask token>


class GameState:
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class GameState:

    def __init__(self):
        self.board = [[0] * SIZE_Y] * SIZE_X
        self.players = {}
    <mask token>

    def tick(self):
        pass
    <mask token>

    def randomize_positions(self):
        pass

<mask token>


class GameState:

    def __init__(self):
        self.board = [[0] * SIZE_Y] * SIZE_X
        self.players = {}
    <mask token>

    def tick(self):
        pass

    def create_new_player(self):
        pass

    def randomize_positions(self):
        pass

SIZE_X = 200
SIZE_Y = 200


class GameState:

    def __init__(self):
        self.board = [[0] * SIZE_Y] * SIZE_X
        self.players = {}

    def set_direction(self, player_number, direction):
        if player_number in player.keys():
            players[player_number][2] = direction

    def tick(self):
        pass

    def create_new_player(self):
        pass

    def randomize_positions(self):
        pass

SIZE_X = 200
SIZE_Y = 200


# Holds board values and player head values
class GameState:

    # Create empty board and player states
    def __init__(self):
        self.board = [[0] * SIZE_Y] * SIZE_X

        # players[player_number] = [head_x, head_y, direction, alive])
        self.players = {}

    # Called by server to set player direction on request
    def set_direction(self, player_number, direction):
        if player_number in player.keys():
            players[player_number][2] = direction

    # Called by server to update the game state
    def tick(self):
        pass

    # Called by server to add a new player, returns player number
    def create_new_player(self):
        pass

    # Randomizes players on the edge of the board
    def randomize_positions(self):
        pass
