Hi everyone,I have a question to you. I have a robot class and I am trying to write program that based on this class. Through this class, I can create little robots in some coordinates.In this program I want to make a game like pacman.(but basically) I have a user robot and monster robots. I can control my user robot with arrows and my monsters mowe random directions but I couldn't move my user and monster robots simultaneously.How can I move them at same time in my program?
You can only make it appear that the robots move at the same time.
From what you've posted, I guessing this is a text mode console game.
To make it appear that the robots move at the same time, you only want to redisplay the game map after you've input the user's move, then calculated both the monster's moves.