Skip to content

roryokane/pegs-js

Repository files navigation

Pegs

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

The game Pegs for the TI-83+ graphing calculator, ported to the browser. I’m still working on this port, but you can play what I have so far on GitHub.

The original Pegs was part of PuzzPack by Detached Solutions, and its main developer was Fred Coughlin. This port is by Rory O’Kane.

I already wrote a complete port of pegs to Adobe Flash in 2006, but it is no longer published anywhere (it was on GeoCities). Now I’m porting that port to HTML, CSS, and JavaScript. I already have all image assets the game needs (which I reproduced by hand, pixel-by-pixel), and ActionScript 2 code that reproduces all behavior of the original game. However, the old code needs refactoring – it uses too many comments and not enough constants and functions.

See also Pegs in PuzzleScript, my completed port of Pegs to the PuzzleScript engine, which runs in the browser. That version has original graphics and sound; this version tries to reproduce the graphics and features of Pegs exactly as they were on the graphing calculator.

Building

Building this project requires NPM.

  • Run make serve to start a development server that automatically compiles files
  • Run make build to generate a dist folder containing the compiled site

Testing

  • Run make test to run the tests.
  • Run make test-watch to run the tests once at first, and then again every time a code file changes.