Skip to content

Instantly share code, notes, and snippets.

@stvnwrgs
Created March 23, 2012 13:08
Show Gist options
  • Save stvnwrgs/2170480 to your computer and use it in GitHub Desktop.
Save stvnwrgs/2170480 to your computer and use it in GitHub Desktop.
Takuzu generator
while (!isResultOk) {
for (int x = 0; x <= maximumCells; i++) {
for (int y = 0; y <= maximumCells;) {
Random random = new Random();
boolean a = random.nextBoolean();
cell[x][y] = a;
}
isResultOk = checkResult();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment