Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. int  max(  ... )
  2. {
  3. int to_Return=0;
  4. int var;
  5.     if(nie jesteś poza planszą oraz jest bicie w prawą górę)
  6.         {
  7.             var= max( wspłrzędne mzieniasz na te +2 +2) +1;
  8.             if(var> to_return)
  9.                 to_return=var;
  10.         }
  11.     if (nie jesteś poza planszą oraz jest bicie w prawy dół)
  12.     {
  13.         var= max (współrzędne zmieniasz na te  +2,-1) +1;
  14.             if(var> to_return)
  15.                 to_return=var;
  16.     }
  17.         ..... pozostałe dwa przypadki
  18.     return to_Return;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement