Exemple #1
0
        static public List <Game.Tile> FindDirectWinningPossibilities(Game.Board board, Object player)
        {
            var allPotentialWinningTiles = new List <Game.Tile>();
            var placeable = board.GetAllPlaceableTiles();

            foreach (Tile t in placeable)
            {
                if (IsDirectlyWinnableOnTileForPlayer(board, t, player))
                {
                    allPotentialWinningTiles.Add(t);
                }
            }
            return(allPotentialWinningTiles);
        }