daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool won(void)
  2. {
  3.     int number = 1;
  4.     for (int i = 0; i < d; i++)
  5.     {
  6.         if (number == d*d) return true;
  7.         for (int j = 0; j < d; j++)
  8.         {
  9.             if ( board[i][j] != number )
  10.             {
  11.                 return false;
  12.             }
  13.             number++;
  14.         }
  15.     }
  16.     return true;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top