Skip to content

A snake game implementation using TypeScript's typesystem alone

Notifications You must be signed in to change notification settings

michaelKurowski/pure-types-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A snake game implementation using TypeScript's typesystem alone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published