Advertisement
programusy

kod4

Dec 1st, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void zawodnik::ruch()
  2. {
  3. int L = rand()%4;
  4.  
  5. if (L==0){
  6. x++;
  7. }
  8. else if (L==1){
  9. y++;
  10. }
  11. else if (L==2){
  12. x--;
  13. }
  14. else{
  15. y--;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement