Skip to content

The elevator programming game, modified to accept GO WASM input

License

Notifications You must be signed in to change notification settings

didil/gowasm-elevatorsaga

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO WASM Elevator Saga

The elevator programming game, modified to accept GO WASM input:

  • The user submits his go code
  • A POST request is sent to a REST API endpoint with the user code + a hash
  • The reverse proxy checks the cache, in case of a cache HIT the next step is skipped
  • The Go API server builds the wasm binary in a docker container
  • The wasm binary is returned to the browser and loaded
  • Frontend JS calls the wasm code and runs the solution

Intro Article: Practice your Go WebAssembly with a Game

Only tested on Chrome v71+ !

TODO:

  • try out tinygo

Play it now!

Image of Elevator Saga in browser

About

The elevator programming game, modified to accept GO WASM input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.2%
  • HTML 4.0%
  • CSS 3.1%
  • Go 0.7%
  • Shell 0.0%
  • Makefile 0.0%