Nature of Code: 5th Assignment
For this week's assignment, I've created a simple game using autonomous agents.
The rules of the game are simple.
At first, five lives are given. The vehicle takes the red dot as a target, and as the vehicle touches the red dot, the player loses one life. All the player needs to do is to make the red dot run away from the vehicle using their mouse as represented by the blue dot.
There are two occasions to make the red dot move to a random location. The first occasion is when the player lost one life. This is the moment when the vehicle touches the red dot. The second occasion is when the blue dot approaches the red dot.
Therefore, the objective of this game is to make the blue dot reach the red dot faster than the vehicle so the red dot can stay alive longer as possible.