diff --git a/README.md b/README.md index 0ef305a..ab8cd69 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,35 @@ This project is for the quantum challenge 2024 from [第一届“天衍”量子计算挑战先锋赛-大众组](https://qc.zdxlz.com/learn/#/megagame/megagameDetail?id=1801135605315321857&lang=zh) +#### Screenshot + +⚪ CUI + +![cui](./img/cui.png) + +⚪ WebUI (⚠ still under development...) + +![webui](./img/webui.png) + + +#### How to start + +ℹ So far only the ugly CUI client works... 😓 + +- `cd server; python server.py` +- `cd client\cui; python start.py` + - enter `h` for command help + - run in debug mode: `python start.py --debug` + + #### GamePlay -- You will face with a 5-qubits 10-clock **quantum logical circuit**, and an infinite sequence of random spawned **quantum logical gates**, mimicking the traditional Tetris board and pieces 🤔 -- You are asked to select proper gates and **append** to the circuit, and the score is counted 😮 -- When two rotation gates of the same axis meet, they'll be **merged** with a score ratio x1.5 😀 +- You will face with a 5-qubits 10-clock **quantum logical circuit**, and an infinite sequence of random spawned **quantum logical gates**, mimicking the traditional Tetris board and pieces +- You are asked to select proper gates and **append** to the circuit, and the score is counted +- When two rotation gates of the same axis meet, they'll be **merged** with a score ratio x1.5 - When two gates inversion (dagger!) of each other meet, they will be **eliminated (Bingo!)** with score ratio x3 🎉🎉 -- Every 5 bingos, you'll have an additional **removal token**. You can use it to remove an arbitrary gate! 🤗 -- Note that SWAP is NOT the the quantum SWAP gate, it can swap locations of two single-qubit gates! 😈 +- Every 5 bingos, you'll have an additional **removal token**. You can use it to remove an arbitrary gate! +- Note that SWAP is NOT the the quantum SWAP gate, it can swap locations of two single-qubit gates!
Notes for the 1st gameplay design draft :( @@ -27,20 +48,6 @@ However, implementing this requires O(2^n) computations and is extremely annoyin #### References -⚪ Citation - -If you find this work useful, please give a star ⭐ and cite 📖~ - -``` -@misc{kahsolt2024, - author = {Kahsolt}, - title = {Quantum-Circuit-Elimination}, - howpublished = {\url{https://github.com/Kahsolt/Quantum-Circuit-Elimination}} - month = {July}, - year = {2024} -} -``` - ⚪ Other Tetris-inspired quantum games - Quantum Games and Interactive Tools for Quantum Technologies Outreach and Education: https://arxiv.org/pdf/2202.07756.pdf @@ -59,6 +66,18 @@ If you find this work useful, please give a star ⭐ and cite 📖~ - repo: https://github.com/darkknightgit/QuanTetrum - demo video: https://www.youtube.com/watch?v=DlKU3qC7mQc +If you find this work useful, please give a star ⭐ and cite~ + +``` +@misc{kahsolt2024, + author = {Kahsolt}, + title = {Quantum-Circuit-Elimination}, + howpublished = {\url{https://github.com/Kahsolt/Quantum-Circuit-Elimination}} + month = {July}, + year = {2024} +} +``` + ---- by Armit 2024/07/07 diff --git a/client/cui/start.py b/client/cui/start.py index 9c3cb3d..be3f7e2 100644 --- a/client/cui/start.py +++ b/client/cui/start.py @@ -270,6 +270,9 @@ def print_panel_main(): print('Cur Gate:', playerdata.cur_gate) print('Next Gate:', playerdata.nxt_gate) + print('===================================') + print('Score:', playerdata.score) + print('Token:', playerdata.token) print() def run(): diff --git a/client/webui/README.md b/client/webui/README.md index ab23bdf..d91af11 100644 --- a/client/webui/README.md +++ b/client/webui/README.md @@ -1,5 +1,7 @@ This is a basic WebUI client for the Quantum Circuit Elimination game :) +⚠ 目前实现不完整,UX实现暂时无法解决 两比特门的放置 和 SWAP动作的使用 + ### Quick start - just open file [index.html](./index.html) in your favourite brower diff --git a/img/cui.png b/img/cui.png new file mode 100644 index 0000000..afbc207 Binary files /dev/null and b/img/cui.png differ diff --git a/img/webui.png b/img/webui.png new file mode 100644 index 0000000..960c9bb Binary files /dev/null and b/img/webui.png differ