Need help with quantum-game?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

stared
295 Stars 34 Forks MIT License 626 Commits 8 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 9,506
Python
keras-v...
Keras
The Jul...
455 commits
# 426,996
HTML
CSS
Shell
quantum...
81 commits
# 12,648
Raspber...
sd-card
raspber...
micropy...
1 commit
# 268,709
C++
Awesome...
mac
Qt
1 commit

Quantum Game with Photons

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

A note: this repository is an old Quanutm Game (2014-2016). The new one (2019-) is here: github.com/Quantum-Game. Social handles remain the same (Quantum Game with Photons, Twitter: @QuantumGameIO) - feel invited to follow us there. There is a new blog, Quantum Photon - Medium. Also: all ideas, issues and pull requests should go to the new game!

Screenshot

Development version

Open for collaboration! For more details, see here.

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:

First, install global packages:

bash
npm install --global karma-cli

Then install local packages.

bash
npm install
jspm install

Additionally, for development we use

eslint
with
eslint-plugin-lodash
.

Running server

Start local HTTP server in the quantum game directory (e.g. by http-server).

Running tests

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

  • You can build this image by running the following command in the root of this repository:
    docker build .
  • You can also pass in a valid JSPMGITHUBAUTHTOKEN by building like this: `docker build --build-arg JSPMGITHUBAUTHTOKEN="ajspmencryptedgithubtoken" .`
    • For more information see: https://stackoverflow.com/questions/30995040/jspm-saying-github-rate-limit-reached-how-to-fix

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.