Using SDL2 I first created a small prototype of a Snake game in C++. After finishing this I followed the emscripten guide for porting SDL projects to be compiled by emscripten. This allowed me to compile the game to be playable here on the web.
This was also partly a challenge on how quickly I could code something as I set myself a day limit for implementing the code, but slightly longer to handle the web porting.