public void AssignNewColorToMatchedOrbs() { List <PuzzleOrb> matched = GetAllMatchedOrbs(); for (int i = 0; i < matched.Count; i++) { matched[i].orbColor = OrbColorHelper.GetRandomOrbColor(); } }
public void FillBoardWithNewOrbs() { for (int y = 0; y < Board.Rows; y++) { for (int x = 0; x < Board.Columns; x++) { PuzzleOrb newOrb = new PuzzleOrb(x, y, OrbColorHelper.GetRandomOrbColor()); Board[y, x] = newOrb; } } }
public string GetBoardString() { string boardString = "\n"; for (int y = 0; y < Board.Rows; y++) { for (int x = 0; x < Board.Columns; x++) { boardString = "[" + OrbColorHelper.GetColoredOrbLetter(Board[y, x].orbColor) + "]" + boardString; } boardString = "\n" + boardString; } return(boardString); }
public string GetCombosString() { string matchString = ""; matchString += "Combo count: " + Combos.Count + "\n"; for (int i = 0; i < Combos.Count; i++) { matchString += "["; matchString += "Combo#" + i; matchString += " OrbCount: " + Combos[i].OrbCount; matchString += " Orb Color: " + OrbColorHelper.GetColoredOrbName(Combos[i].OrbType); matchString += " Match Type: " + Combos[i].MatchType.ToString(); matchString += "]\n"; } return(matchString); }