Hi im a begginer can you guys help me in making like random moves like pacman's ghost who moves randomly pls help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi im a begginer can you guys help me in making like random moves like pacman's ghost who moves randomly pls help

29th Dec 2019, 4:35 AM
HipHarry Plays
4 Answers
+ 2
Where is the code ?
29th Dec 2019, 4:36 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
HipHarry Plays you must show us some code first, so we can take a look at it. No one is going to write a code from the start, unless you have made something but failed to finish it, ot wanted to make it better. Once you do, people would be happy to give you their opinions and help.
29th Dec 2019, 4:40 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
HipHarry Plays Please indicate the preferred programming language in your question tags. It helps people to understand the scope of your question, random system syntax differ amongst languages. As a hint, you generate a random value between 1 through 4, each this number specifies move direction. As a side note, it is highly recommended to include the code you're working on so people can review it, and lessen the chance for misunderstanding. That is why you are prompted to show your code.
29th Dec 2019, 5:21 AM
Ipang
0
i dont know what do you prefer?
29th Dec 2019, 4:38 AM
HipHarry Plays