public Game(int width, int height, int maxClues) { this.width = width; this.height = height; this.gameGrid = new GameGrid(width, height); this.gameGrid.GenerateGrid(); this.allClues = ExtractClues(); this.selectedClues = SelectClues(max: maxClues); }
public void PrintSelectedClues() { GameGrid gameGrid = this.GameGrid; this.selectedClues.Sort((a, b) => { if (a.Characters.Count < b.Characters.Count) { return(-1); } else if (a.Characters.Count > b.Characters.Count) { return(1); } else { return(0); } }); this.selectedClues.ForEach(clue => Console.WriteLine(clue)); Console.WriteLine($"Total Clues: {this.selectedClues.Count}"); }
public void PrintAllClues() { GameGrid gameGrid = this.GameGrid; this.AllClues.ForEach(clue => Console.WriteLine(clue)); }