Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 675 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 675 Bytes

Pure types implementation of a snake game

This is a snake game implemented using types alone. To start the game open index.ts and start typing awsd into the helloworld string. These are treated as a classic game controls.

Screenshot 2023-06-08 at 08 19 23

S symbols represent snake, X is food. Like in the original, snake goes around and eats food that makes it grow, once food is eaten, new one is generated in a random spot.

The whole game is written using TypeScript's types alone, without any classic programming code.