• Stars
    star
    343
  • Rank 123,371 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

science-based-games-list

Science-based games - a collaborative list
1,577
star
2

livelossplot

Live training loss plot in Jupyter Notebook for Keras, PyTorch and others
Python
1,294
star
3

interactive-machine-learning-list

A collaborative list of interactive Machine Learning, Deep Learning and Statistics websites
JavaScript
432
star
4

thinking-in-tensors-writing-in-pytorch

Thinking in tensors, writing in PyTorch (a hands-on deep learning intro)
Jupyter Notebook
329
star
5

keras-sequential-ascii

ASCII summary for simple sequential models in Keras
Jupyter Notebook
126
star
6

tagoverflow

An interactive map of Stack Exchange tags for all sites.
JavaScript
125
star
7

tag-graph-map-of-stackexchange

Generates map in form of a graph from tags on StackExchange sites, e.g. StackOverflow.
Python
53
star
8

weltschmerz

Weltschmerz by age - "I am X years old and... [Google autocomplete]"
JavaScript
23
star
9

keras-mini-examples

Small Keras examples to get you started
Jupyter Notebook
20
star
10

data-science-pl

Data Science PL knowledge base / baza wiedzy
14
star
11

qubism

Self-similar visualization of many-body wavefunctions (and also: time series, DNA, proteins).
Mathematica
13
star
12

which-ml-are-you

Which ML are you?
Vue
12
star
13

jekyll-blog-pre-2022

Old Piotr Migdał's blog, in Jekyll, pre 2022
HTML
9
star
14

delab-matury

Analiza i wizualizacja danych maturalnych z lat 2010-2014
Jupyter Notebook
8
star
15

wizualizacja-wolnych-lektur

Themes and colours of readings from wolnelektury.pl - a visualization in D3.js.
Python
8
star
16

kfnrd_viz

Wizualizacje danych Krajowego Funduszu na rzecz Dzieci
JavaScript
7
star
17

cv-resume

My Curriculum Vitae / Resume
TeX
7
star
18

uw-ml-python-2017

Jupyter Notebook
6
star
19

hackart-you-in-artwork

Skarby muzeum (1 miejsce w HackArt Muzeum Narodowego w Warszawie)
Jupyter Notebook
6
star
20

pytorch-intro

Intro to PyTorch stuff; now internal, for interns
Jupyter Notebook
5
star
21

gossipingcommons

Gossiping Commons - “don't tell alike” and “no author, please” open licenses
5
star
22

stable-diffusion-keras-m1-gpu

Stable diffusion image generation with KerasCV for Macbook M1 GPU
Jupyter Notebook
4
star
23

se-api-py

A lightweight Python wrapper for StackExchange API v2.1
Python
4
star
24

matrix-decomposition-viz

Work in progress
JavaScript
4
star
25

talk_20160119_jupyter_notebook

Presentation on Jupyter Notebook (IPython Notebook + R) - at Data Science Warsaw Meetup
Jupyter Notebook
3
star
26

old-blog-gridsome-pre-2024

Old Piotr Migdał blog - Gridsome, 2022-2024
Vue
3
star
27

A-numerical-model-of-the-Mafia-game

Party game Mafia (a.k.a. Werewolf) investigated numerically.
Python
3
star
28

menger-vr

Menger Sponge - 3D Fractal VR - A-Frame
HTML
3
star
29

piotr_migdal_resume

Piotr Migdal Resume 2022+, LaTeX AltaCV template
TeX
2
star
30

dl-diag-d3js

Deep Learning architecture diagrams - a D3.js library
JavaScript
2
star
31

random_data_explorations

Random data explorations
Jupyter Notebook
2
star
32

art-tensor-diagrams

Tensor Diagrams expository article in RDMarkdown Distill
TeX
2
star
33

python-neuroaspects-2016

First steps with data analysis in Python - Aspects of Neuroscience 2016
Jupyter Notebook
2
star
34

trypo-brainhack

Jupyter Notebook
1
star
35

diffraction-gratings

Diffraction Gratings, Moire Pattern and Spiral Zone Plates - in PostScript
1
star
36

pypi-search-meteor

PyPI interactive package search in Meteor
JavaScript
1
star
37

stared.github.io

Personal website and blog by Piotr Migdał, in Nuxt 3 Content
Vue
1
star
38

szkolomat_dane

Szkołomat - dane
1
star
39

yarn-adding-pure-typescript-package-example

TypeScript
1
star
40

trolleython

Trolley with Friends - a cynical game (in dev)
JavaScript
1
star
41

nalogi-viz

Wizualizacja nałogów - co dają, co zwalczają (przyciągające się słowa)
Jupyter Notebook
1
star