void BPMiniGame_ShortCircuitSudoku::LevelUp() { ++NumTries; ++CurrentLevel; LastStateChange = -1; if (CurrentLevel > 15) CurrentLevel = 15; GenerateGrid(); BPList<int> hidden; // remove some squares for (int i = 0; i < 15 + CurrentLevel; ++i) { int hideme = TheGame->RandomRange(0, Sudoku.Count - 1); hidden.Add(hideme); Sudoku[hideme]->Showing = false; } hidden.Shuffle(); GuessSquare = Sudoku[hidden[0]]; GameState = WAITING; }
void GridMesh::Invalidate() { GenerateGrid(); }
void GridMesh::Load() { GenerateGrid(); }