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