Skip to content

avindra/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Build Status

It is an implementation of the game of snake using reference JavaScript, and <canvas> for graphical output. The codebase uses Typescript (mostly for a handful of interface descriptions.)

There is experimental sound: unplug your headphones to rip beeps over your speakers.

Click to play 🐍!

Development

A Makefile is included for convenience.

esbuild is used to build/bundle.

deno is used for unit testing.

  • run make build to build/bundle
  • run make dev to get a watch/recompile workflow (requires Python 3 for http server)
  • run deno test src to run unit tests
    • Unit tests are co-located into src/