Beispiel #1
0
        //Determines if a side has any moves left to play
        public static bool ColorHasMoves(GameBoard board, ColorEnum color)
        {
            foreach (AbstractPiece piece in board.getPieces(color))
            {
                if (board.getMoves(piece).Count > 0)
                {
                    return(true);
                }
            }

            return(false);
        }