Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zawodnik::ruch()
- {
- int L = rand()%4;
- if (L==0){
- x++;
- }
- else if (L==1){
- y++;
- }
- else if (L==2){
- x--;
- }
- else{
- y--;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement