status: working but parked, use it in your browser
A training tool that gets you to write code like a dinosaur.
- User picks a language
- User is presented w/ 2 panes; editor and live feed to their code being executed
- User makes changes to code to achieve some goal
I don't really know what the goals will be yet, but I'm thinking about about multiplayer challenges- something like:
- Two players need to exchange some messages with each other
- Two players need to complete a set of calculations (over a series of messages) and each player can only see the odd or even half of the steps
- Two or more players need to develop a decentralised chat system (discovery etc) without knowing who's out there
- Same as above, but now there are adversaries (also players) actively trying to hinder the other players
Ultra hard mode would be players on the same team need to discover and communicate with each other using only the code in front of them; in the case where there are adversaries there'd be a whole element of validating that the person you're talking to is a teammate, not an adversary.
- Backend
- Go w/ built-in HTTP server and subprocess orchestration libs
- entr
- sorenisanerd's fork of gotty
- Frontend
Frontend
makes a GET request to the backend to be allocated a sessionFrontend
mountsShell
component that gives the live feed of thegotty
session (just as an iframe)User
makes edits inEditor
componentEditor
component text POST'd toBackend
entr
inBackend
re-runs code processShell
component in frontend continues to display live feed
- Ability to group sessions together / isolate them from other groups
- Record all the packets and interactions for a group with timestamps
Build and run in the foreground
make # will block and teardown on Ctrl + C
Build and run in the background
make up
make logs # optional
make down # teardown
Once you've got the services up and running, navigate to http://localhost/ to see the frontend and select a language to play with.
You can also navigate directly to a particular language, e.g. http://localhost/?language=rust.
You can also share a session by navigating to it's URL in another browser window; e.g http://localhost/?language=rust&session_uuid=(some_uuid)