Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-forth

I went to the Micro Museum in Ramsgate. Although most of the old computers there were being used for games, I spotted the packaging for Acornsoft Forth, for the Electron, in a display case, and that got me wondering about Forth.

To cut a long story short, I ended up attempting to write Snake in Forth. And I asked an LLM to help me.

To keep myself sane, IO is via the browser, with Typescript rendering the game state to an HTML Canvas. The game logic, though, is all Forth, run via WebAssembly using WAForth

We have a snake that moves around a board.

$ npm start runs it. Or it's on github pages -- here

About

Snake for the browser implemented in Forth via waforth

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages