h15200 / challenge

Pacman Technical Challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pacman Technical Challenge

Typescript & React implementation of the popular arcade game Pacman.

Currently pacman uses [A, S, W, D] keys for moving.

Suggested time: 1 hour.

Tasks

  • Create a way to automate Pacman's moves in src/lib/game/Pacman.ts such that Pacman can achieve the highest score.
  • Add a button that will run 100 iterations using the new automated algorithm
  • Take note of any architectural problems for further discussion

Rules

  • "Looking" is defined by examining the this.items elements. See findItem method of src/lib/game/Item.ts for an example
  • Pacman can only look ahead and side to side (he can not look behind him).
  • Pacman can not look through walls
  • Do not alter the Ghosts' behavior
  • Do not alter the scoring rules
  • Be creative

About

Pacman Technical Challenge

License:GNU General Public License v3.0


Languages

Language:TypeScript 98.7%Language:HTML 1.3%