Snitch is a surface code simulator.
If you want to modify Snitch, this is how you get the code and turn your changes into working html/javascript.
-
Have git and Node.js installed.
sudo add-apt-repository universesudo apt-get updatesudo apt-get install --yes git npm nodejs-legacy -
Clone the repository.
git clone https://github.com/Strilanc/Snitch.git -
Install the dev dependencies.
cd Snitchnpm install -
(Optional) Make your changes. Run the tests.
npm run test-firefox -
Build the output.
npm run build -
Confirm the output works by opening
out/snitch.htmlwith a web browser.firefox out/snitch.html -
Copy
out/snitch.htmlto wherever you want.