Advertisement
Guest User

GECODE

a guest
Feb 21st, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void oppgave2b(int count)
  2. {
  3. puzzle = l;
  4. bool finished = false;
  5.  
  6. while (!finished) {
  7. newPuzzle = puzzle;
  8. rel(*this, newPuzzle[rand()%81+1] == 0);
  9.  
  10. if (count > 1) finished = true;
  11. else
  12. puzzle = newPuzzle;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement