Exemplo n.º 1
0
        /** playMove
         * this method will allow the player to play a move on to the board
         *
         * @param row : the row tha the piece will be played on
         * @param col : the column that the piece will be played on
         */

        public bool makeMove(JokerGame game, JokerPoint point)
        {
            if (game.play(this.color, point.x, point.y))
            {
                moves.AddLast(new JokerMove(color, point));
                return(true);
            }
            else
            {
                return(false);
            }
        }