A small optimizaiton of empty_color calculating
This commit is contained in:
parent
bcc10f94a8
commit
26394d7c29
1 changed files with 1 additions and 0 deletions
1
game.cpp
1
game.cpp
|
@ -85,6 +85,7 @@ void Game::must_be(int n, int must_col) {
|
|||
void Game::empty_color(int col) {
|
||||
for(int n = 0; n < N; n++)
|
||||
possible[n][col] = 0;
|
||||
empty_colors[col] = true;
|
||||
}
|
||||
|
||||
// Specific reactions
|
||||
|
|
Loading…
Reference in a new issue