{"author_link":"\/users\/quantumjim","author_name":"quantumjim","author_uid":1104005,"comments":[{"author_name":"Tezza48","author_uid":"1059368","time":"2019-04-30T18:57:11Z","epoch":1556650631,"modified":1556650753,"text":"Sorry but i was unable to launch the game.\nI have `Python 3.6.5` installed and `pip 19.0.3`\n\nThis is the error that pip runs into when installing the requirements:\n`Could not find a version that satisfies the requirement qiskit-aer==0.1.1 (from qiskit==0.8.0->-r requirements.txt (line 1)) (from versions: 0.1.0)\nNo matching distribution found for qiskit-aer==0.1.1 (from qiskit==0.8.0->-r requirements.txt (line 1))`\n\nNote: the error when running was not having `pygame` but that's obvious as it's not getting the first one installed.","likes":0,"format":"md"},{"author_name":"quantumjim","author_uid":1104005,"time":"2019-04-30T21:03:45Z","epoch":1556658225,"modified":1556658225,"text":"Thanks for trying to run it @tezza48. Looks like this is an issue for some people with a 32 bit OS. Is that true for you?","likes":0,"format":"md"},{"author_name":"Tezza48","author_uid":"1059368","time":"2019-04-30T21:50:12Z","epoch":1556661012,"modified":1556661012,"text":"@quantumjim nope, I'm on 64 bit Win10.\n\nI will try and have a go getting it running tomorrow after work and report back!\n\nIt could very well be an issue related to running multiple python version installs (though my environment is set to py3)","likes":0,"format":"md"},{"author_name":"Adrien Dittrick","author_uid":"1043514","time":"2019-05-01T09:45:17Z","epoch":1556703917,"modified":1556703917,"text":"Aaaaah I have python but this seems like a real pain to launch anyway X)","likes":0,"format":"md"},{"author_name":"Tezza48","author_uid":"1059368","time":"2019-05-01T20:19:32Z","epoch":1556741972,"modified":1556741972,"text":"OK, potentially sorted, i had python 3.6 installed but it was the 32 bit for some reason, i've installed 3.7 64 bit because why not; Seems to be installing requirements just fine!","likes":1,"format":"md"},{"author_name":"Tezza48","author_uid":"1059368","time":"2019-05-01T20:56:47Z","epoch":1556744207,"modified":1556744207,"text":"Hey dude. That was pretty cool and i had to work for it too! using the slash maze is a cool idea and the terrain is fancy. I Don't know much about quantum computing but i'm sure i'll get a good look at the page you provided.\n\n(i tried to play again after my first game (pressed enter after the prompt) and got this error:\n```\nThe island generation procedure is now beginning. The whole process should take around 30 seconds.\n\nTraceback (most recent call last):\n  File \".\\run_game.py\", line 252, in <module>\n    make_world()\n  File \"D:\\tezza\\Downloads\\LD44_Games\\get_memory\\GetMemoryPygame.py\", line 16, in make_world\n    Z, grid = quantum_tartan(Z,0.07)\n  File \"D:\\tezza\\Downloads\\LD44_Games\\get_memory\\WorldBuilder.py\", line 241, in quantum_tartan\n    backend = Aer.get_backend('statevector_simulator')\nNameError: name 'Aer' is not defined\n```\nHope you can get it fixed up as it was cool.","likes":1,"format":"md"},{"author_name":"quantumjim","author_uid":1104005,"time":"2019-05-01T21:03:36Z","epoch":1556744616,"modified":1556744616,"text":"Thanks!\n\nI'll see what I can do about the bug.","likes":0,"format":"md"}],"format":"md","images":["ld44\/149802-fc75c189525224a74403ef515f2f6a44.png"],"links":[{"url":"https:\/\/github.com\/quantumjim\/get_memory\/blob\/master\/README.md","text":"Shockk"}],"metadata":{"g_key":"36440","g_author":"1104005","g_event":"LD44","g_eventkey":"75","g_subevent":"JAM","g_urlkey":"257524","g_title":".get_memory()","g_status":"USEAR3","g_place":"99999","g_commentcount":"7","g_site2_node_id":"149802","g_hide":"N","g_has_icon":"Y","g_rqueue":"0","g_random":"0.586936"},"nds":{"n_key":"149802","n_urlkey":"257524","n_parent":"139254","n_path":"\/events\/ludum-dare\/44\/get-memory","n_slug":"get-memory","n_type":"item","n_subtype":"game","n_subsubtype":"jam","n_author":"104005","n_created":"1556353371","n_modified":"1556630125","n_version":"463641","n_status":"COMMIT"},"node":{"id":149802,"parent":139254,"superparent":9,"author":104005,"type":"item","subtype":"game","subsubtype":"jam","published":"2019-04-29T17:58:48Z","created":"2019-04-27T08:22:51Z","modified":"2019-04-30T13:15:25Z","version":463641,"slug":"get-memory","name":".get_memory()","body":"# .get_memory()\n\nA game for [Ludum Dare 44](https:\/\/ldjam.com\/events\/ludum-dare\/44) made with [Pygame](https:\/\/www.pygame.org) and [Qiskit](https:\/\/qiskit.org\/).\n\n## How to run\n\nYou'll need Python3 to run this game.\n\nFirst download the source and then cd into the folder using a terminal. To install the dependencies, use the command\n\n```python3 -m pip install -r requirements.txt```\n\nTo play the game, use the command\n\n```python3 run_game.py```\n\nThe game is played using two windows: the terminal window for text and the pygame window for visuals.\n\n## How to play\n\nYou move by pressing *q*, *w*, *a* and *d*. You can also teleport with the space bar. The rest is for you to figure out.\n\n## Why does this game exist?\n\nThere are three reasons that this game exists, and which led to it being what it is.\n\n1. It was built during the [Ludum Dare 44 game jam](https:\/\/ldjam.com\/events\/ludum-dare\/44), which had the theme \"Your life is currency\".\n\n2. It was made as an example of using terrain generated by a quantum programs, by the method described in [this blog post](https:\/\/medium.com\/qiskit\/creating-infinite-worlds-with-quantum-computing-5e998e6d21c2).\n\n3. It was made to explore the kinds of labyrinths generated by the classic one-line Commodore 64 program\n\n   ```10 PRINT CHR$(205.5+RND(1)); : GOTO 10```\n   \n   This was ported into the following quantum program, which is the basis for the labyrinths in the game\n   \n   ```from qiskit import *; ''.join( [ '\u2571'*(b=='0') + '\u2572'*(b=='1') for b in execute(QuantumCircuit().from_qasm_str('include \"qelib1.inc\";qreg q[1];creg c[1];h q[0];measure q -> c;'),Aer.get_backend('qasm_simulator'),shots=1024,memory=True).result().get_memory()])```\n   \n   The original program is referred to simply as ```10 PRINT``` in [this book](https:\/\/10print.org\/) about it, after the first part of the program. Inspired by this, I name my port of the program after a part near the end: ```.get_memory()```. This is also used as the name of the game.\n   \n## Things you might also like\n\n* Scientifically accurate animations of teleportation (for bitmaps), made using Qiskit (see [here](https:\/\/github.com\/quantumjim\/quantograph\/blob\/master\/example.md)). These didn't quite make it into the game.\n* [The history of games for quantum computers](https:\/\/medium.com\/@decodoku\/the-history-of-games-for-quantum-computers-a1de98859b5a)\n* A barely playable ASCII prototype for this game can be found [here](https:\/\/trinket.io\/python3\/cab3091236).\n","meta":{"author":[104005],"link-01":"https:\/\/github.com\/quantumjim\/get_memory\/blob\/master\/README.md","link-01-tag":"50","cover":"\/\/\/content\/546\/91\/z\/220eb.png"},"path":"\/events\/ludum-dare\/44\/get-memory","parents":[1,5,9,139254],"love":0,"notes":7,"notes-timestamp":"2019-05-01T21:03:36Z","grade":{"grade-01":2,"grade-02":2,"grade-03":2,"grade-04":2,"grade-05":2,"grade-06":1,"grade-07":1,"grade-08":1},"magic":{"cool":93.541434669349,"feedback":0,"given":0.875,"grade":1.625,"smart":-21.553545944726}},"text":"# .get_memory()\n\nA game for [Ludum Dare 44](https:\/\/ldjam.com\/events\/ludum-dare\/44) made with [Pygame](https:\/\/www.pygame.org) and [Qiskit](https:\/\/qiskit.org\/).\n\n## How to run\n\nYou'll need Python3 to run this game.\n\nFirst download the source and then cd into the folder using a terminal. To install the dependencies, use the command\n\n```python3 -m pip install -r requirements.txt```\n\nTo play the game, use the command\n\n```python3 run_game.py```\n\nThe game is played using two windows: the terminal window for text and the pygame window for visuals.\n\n## How to play\n\nYou move by pressing *q*, *w*, *a* and *d*. You can also teleport with the space bar. The rest is for you to figure out.\n\n## Why does this game exist?\n\nThere are three reasons that this game exists, and which led to it being what it is.\n\n1. It was built during the [Ludum Dare 44 game jam](https:\/\/ldjam.com\/events\/ludum-dare\/44), which had the theme \"Your life is currency\".\n\n2. It was made as an example of using terrain generated by a quantum programs, by the method described in [this blog post](https:\/\/medium.com\/qiskit\/creating-infinite-worlds-with-quantum-computing-5e998e6d21c2).\n\n3. It was made to explore the kinds of labyrinths generated by the classic one-line Commodore 64 program\n\n   ```10 PRINT CHR$(205.5+RND(1)); : GOTO 10```\n   \n   This was ported into the following quantum program, which is the basis for the labyrinths in the game\n   \n   ```from qiskit import *; ''.join( [ '\u2571'*(b=='0') + '\u2572'*(b=='1') for b in execute(QuantumCircuit().from_qasm_str('include \"qelib1.inc\";qreg q[1];creg c[1];h q[0];measure q -> c;'),Aer.get_backend('qasm_simulator'),shots=1024,memory=True).result().get_memory()])```\n   \n   The original program is referred to simply as ```10 PRINT``` in [this book](https:\/\/10print.org\/) about it, after the first part of the program. Inspired by this, I name my port of the program after a part near the end: ```.get_memory()```. This is also used as the name of the game.\n   \n## Things you might also like\n\n* Scientifically accurate animations of teleportation (for bitmaps), made using Qiskit (see [here](https:\/\/github.com\/quantumjim\/quantograph\/blob\/master\/example.md)). These didn't quite make it into the game.\n* [The history of games for quantum computers](https:\/\/medium.com\/@decodoku\/the-history-of-games-for-quantum-computers-a1de98859b5a)\n* A barely playable ASCII prototype for this game can be found [here](https:\/\/trinket.io\/python3\/cab3091236).\n","title":".get_memory()"}