Skip to content

Quantum Game (old version) - a puzzle game with real quantum mechanics in a browser

License

Notifications You must be signed in to change notification settings

stared/quantum-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

531710c · Dec 24, 2021
Oct 28, 2019
Jul 3, 2016
Jun 15, 2018
Jun 4, 2018
Mar 19, 2016
Jul 12, 2016
Oct 25, 2015
May 31, 2018
Apr 9, 2017
Dec 24, 2021
Dec 14, 2015
May 30, 2016
Dec 24, 2021
Dec 24, 2021
Jun 25, 2017
Jun 1, 2016
Jun 3, 2016
Jun 1, 2016
Dec 24, 2021
Dec 24, 2021
Mar 19, 2016
May 30, 2016
Dec 24, 2021
Dec 24, 2021
Jun 1, 2016

Repository files navigation

Quantum Game with Photons (2014-2016)

A note: this repository is an old Quanutm Game (2014-2016), no longer maintained. The new one (2019-) is at quantumgame.io.

Quantum Game - play with photons, superposition and entanglement. In your browser! With true quantum mechanics underneath!

Screenshot

Development version

It's JavaScript, ES6. To build it you need Node.JS and jspm.io package manager.

It's open for collaboration - from level creation, through interface (re)design and adding additional effects (two-photon interference, interactions with an electron). Interested? Mail [email protected].

Installing

After installing Node.js and jspm.io, and cloning this repository:

Then install local packages.

npm install
jspm install

Additionally, for development we use eslint with eslint-plugin-lodash.

A note: jspm is seriously outdated and the build may not work.

Running server

Start local HTTP server in the quantum game directory (e.g. by http-server). Does not need an install, as there are pre-built files.

Running tests

./node_modules/.bin/karma start

Production version

Bundle it (and minify, if you want):

jspm bundle-sfx --minify app

It creates a build.js file. To run it we need a modified index.html (it is a manually-modified file, stored in bundled/index.html).

On the server, the structure of files should look as follows:

css\
favicon.ico
build.js
index.html

Docker

Alternatively, you can install dependencies using Docker.

Building

Running

  • If your build completes sucessfully there will be a new image ID printed at the end of the build, which you can then use to to run it: docker run -d -p 80:8080 ${IMAGE_ID_FROM_BUILD}
  • or for a community built image try this: docker run -d -p 80:8080 spkane/quantum-game:latest

and then open up a web browser and point it to port 80 on your Docker host.