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](https://private-user-images.githubusercontent.com/2772942/244282778-b4eb1af7-0261-4078-a463-d56ee5ace280.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NzgxMzEsIm5iZiI6MTcyNTY3NzgzMSwicGF0aCI6Ii8yNzcyOTQyLzI0NDI4Mjc3OC1iNGViMWFmNy0wMjYxLTQwNzgtYTQ2My1kNTZlZTVhY2UyODAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDdUMDI1NzExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjkwM2ZkODMyOTFkODY1ODJiYjIzMjEwMWQzMTkzYTU0NTg3ZTk3OWI2MjBjMzYyNTQyOTBhOTgzNTNjYzhmNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Aif8qJEEUoVi3Ux18SM6rM63H8zLu9AWDtqaAQOyrx4)
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.