https://github.com/aveek-saha/pac-man

🕹 A recreation of the classic Pac-Man game with better AI for the ghosts.

https://github.com/aveek-saha/pac-man

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • â—‹
    CITATION.cff file
  • ✓
    codemeta.json file
    Found codemeta.json file
  • â—‹
    .zenodo.json file
  • â—‹
    DOI references
  • â—‹
    Academic publication links
  • â—‹
    Academic email domains
  • â—‹
    Institutional organization owner
  • â—‹
    JOSS paper metadata
  • â—‹
    Scientific vocabulary similarity
    Low similarity (8.0%) to scientific vocabulary

Keywords

a-star-search best-first-search dijkstra-shortest-path game-2d pac-man pacman phaserjs
Last synced: 5 months ago · JSON representation

Repository

🕹 A recreation of the classic Pac-Man game with better AI for the ghosts.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
a-star-search best-first-search dijkstra-shortest-path game-2d pac-man pacman phaserjs
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.md

Pac-Man

A re-creation of the classic Pac-Man game created using Phaser. The ghosts use improved AI to track down Pac-Man faster.

Play it here: Pac-Man

Ghost AI

  • The game map is represented as a 2D array where each cell has either a 0 or 1.
  • Walls are represented by 0 and 1 is a traversable path.
  • This 2D array is passed to the A* function which returns an array of steps the ghosts should follow.
  • The function uses the A* algorithm to find the best path for the ghosts to take to reach Pac-Man.

Since Pac-Man's position is constantly changing, we only need to get the first step from the array of steps and move the ghost. The path that the ghosts take is highlighted by tracing the path returned by the A* function.

Controlling Pac-Man

Use the arrow keys to control Pac-Man

Move right: 🠊 | Move left: 🠈 | Move up: 🠉 | Move down: 🠋

The game ends when a ghost catches you, refresh the page to restart.

Gameplay

Development

To develop, clone the repo and start the dev server git clone git@github.com:Aveek-Saha/Pac-Man.git cd Pac-Man npm start

This will automatically open http://localhost:8080/

Assets

All assets are from kenney.nl

Team

This project was a team effort by

| Name | GitHub Profile | |:---:|:---:| | Aveek Saha | aveek-saha | | Gopal Nambiar | gopuman | | Arvind Srinivasan | arvindsrinivasan |

Owner

  • Name: Aveek Saha
  • Login: Aveek-Saha
  • Kind: user
  • Location: Boston, MA
  • Company: @akamai

Cloud Computing, Machine Learning and Full Stack. SDE co-op @akamai. MSCS student @northeastern. Previously at @HewlettPackard, @altimetrik & @ IIT Kgp.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • Aveek-Saha (1)
Top Labels
Issue Labels
Pull Request Labels
enhancement (1)