Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0 ; i <= 9 ; i++ )
- {
- for ( j = 0 ; j <= 19 ; j++ )
- {
- if (map[9-i][j] == '@')
- {
- x=j;
- y=i;
- intoado(x,y);
- }
- }
- }
- //End search
- //some comments here blah blah blah blah
- for (i = 0; i < step.size() ; i++)
- {
- if (step.at(i) == "LEFT_") left(x,y);
- if (step.at(i) == "RIGHT") right(x,y);
- if (step.at(i) == "JUMP_") jump(x,y);
- if (step.at(i) == "RJUMP") rjump(x,y);
- if (step.at(i) == "LJUMP") ljump(x,y);
- if (checkmap(x,y,m) == 1) break;
- }
- cout << endl;
- if ( m == 0 )
- cout << -1;
- else
- cout << m <<endl;
- system("pause");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement