Skip to content

chetbae/quantum-pacman

 
 

Repository files navigation

Try this link if the other doesn't work! https://quantum-pacman.vercel.app/

Quantum Pacman Pacman ⚛️ Blinky

The classic game of Pacman but with a quantum twist!

Game Rules

  • Gobble and swallow pellets to gain points.
  • Careful! The ghosts (inky, blinky, pinky, and clyde) exist to hunt you down. But in this game, they act as quantum particles!
  • What does this mean? It means the position of all ghosts is not deterministic but instead given as probability distribution. Effectively, this makes all ghosts invisible, and there is little certainty in their position at any given time.
  • Wait! When Pacman eats a certain number of pellets, he will ‘flash’ himself around a certain radius, making the area around him visible where all ghosts caught inside will ‘collapse’ to their true positions.
  • When Pacman consumes a power-pellet, he will flash the entire board, forcing all ghosts to collapse to their positions and making them vulnerable to consume so that their flesh are quantified into points.

Quantum Features

Each ghost acts as quantum particles whose position is given by a probability distribution.​

image

When a ghost falls within the radius of Pac-Man's flash, they collapse to a position!

image
Screenshot 2024-11-17 at 10 50 02 AM

Credit

We worked off of the open-source web-pacman! Thank you @NicerWritter27.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.5%
  • HTML 10.7%
  • SCSS 8.8%