srijan-paul / pureman

A faithful Pacman clone in PureScript (for fiddling with AI algorithms :))

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pureman

A Faithful clone of the 1980 Arcade game – Pacman. This project tries to mimic the behavior of the maze and the ghosts as closely as possible, and then introduce an AI Actor to play the game.

Why? I wanted to ease my way into modelling video game entities and real time event dispatch in a purely functional setting. There's very few projects that do this well. There's Defect Process (Haskell), Lich (Scala), Carmack's keynote (Haskell), and then... nothing? (that I know of, at least).

Even half the links in the Game-dev page on Haskell wiki are dead!

At the time of me writing this, the core game is about 90% finished. Once fully completed, I'll train a reinforcement learning model to play the game. You know, to please our future overlords.

Building locally

Make sure you have Spago and PureScript v0.15.10+ installed.

$ pnpm install
$ pnpm dev

That's it, now go check your browser.

About

A faithful Pacman clone in PureScript (for fiddling with AI algorithms :))


Languages

Language:PureScript 85.2%Language:Dhall 10.9%Language:JavaScript 3.3%Language:HTML 0.7%