Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int max( ... )
- {
- int to_Return=0;
- int var;
- if(nie jesteś poza planszą oraz jest bicie w prawą górę)
- {
- var= max( wspłrzędne mzieniasz na te +2 +2) +1;
- if(var> to_return)
- to_return=var;
- }
- if (nie jesteś poza planszą oraz jest bicie w prawy dół)
- {
- var= max (współrzędne zmieniasz na te +2,-1) +1;
- if(var> to_return)
- to_return=var;
- }
- ..... pozostałe dwa przypadki
- return to_Return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement