An old Snake game implementation I found lying around
- TypeScript 100%
| src | better or worse frame | |
| .gitignore | Initial commit | |
| package-lock.json | Initial commit | |
| package.json | Initial commit | |
| README.md | publish | |
| tsconfig.json | snake class | |
Command Line Snake
(an old project I found lying around untouched for 1.5 years and decided it is not too embarrassing to publish (licensed under the EUPL btw), to show how much better I am now at programming (im not))
The classic Snake game implemented in TypeScript for the command line
Usage
First, download the code
git clone https://codeberg.org/rdsq/command-line-snake-js
cd command-line-snake-js
Then run it using your JavaScript runtime
Node.js
tsc # Compile TypeScript
node out/index.js
Deno
deno run src/index.ts
Bun
bun src/index.ts