Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TiraTestit {
- // int reitit = 0;
- public static void uoleviPuistossaLoL(boolean[][] puisto, int i, int j, int kayty) {
- int reitit = 0;
- if (kayty == 25) {
- reitit++;
- }
- if (i < 0 || i > 4) {
- } else if (j < 0 || j > 4) {
- } else {
- uoleviPuistossaLoL(puisto, i, j - 1, kayty);
- uoleviPuistossaLoL(puisto, i, j + 1, kayty);
- uoleviPuistossaLoL(puisto, i - 1, j, kayty);
- uoleviPuistossaLoL(puisto, i + 1, j, kayty);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement