RaijnAU / toy-robot

Deployed:
https://gifted-meninsky-03d86f.netlify.com/
1 stars 0 forks source link

Player vs CPU #13

Open stevensacks opened 5 years ago

stevensacks commented 5 years ago

Oh snap. Time to put on your learning cap. https://en.wikipedia.org/wiki/Pathfinding

By the time you get to this point, you'll be comfortable writing code and you'll be able to do some research and figure out how to apply what you find (other people's code?) to this game.

One robot will be controlled by you, the player. The other will be controlled by the CPU using a pathfinding algorithm.

To keep it fair, we'll need to throttle how fast you can move the robot and then the CPU will only move as fast as you can, too.

To keep it easier to build in the beginning, no obstacles, tunnels or portals.

Then add obstacles, then tunnels, then portals.

Woot!