% A Player of the Hex game.
classdef Player < handle
    properties
        % Color of the player, set during creation of the Player
        color
        % Index of the player, set by the Game
        index
    end
    methods (Abstract)
        % Gets the next move from the player. nextMove is a two element
        %  vector of the x-coordinate and y-coordinate.
        nextMove = getMove(player, game, board)
    end
    methods
        % Creates a Player with the given color
        function player = Player(color)
            player.color = color;
            player.index = 0;
        end
    end
end
