From 728e93e3510e8ad398f4b8b3cf65aa6ee8320a03 Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 21:53:48 -0700 Subject: [PATCH 01/12] Create README_ZH.md Add Chinese version of read me --- examples/quantum_chinese_chess/README_ZH.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/quantum_chinese_chess/README_ZH.md diff --git a/examples/quantum_chinese_chess/README_ZH.md b/examples/quantum_chinese_chess/README_ZH.md new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/examples/quantum_chinese_chess/README_ZH.md @@ -0,0 +1 @@ + From 4f0da3e4e3350eb2c72a90249157c8864a573efe Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 22:54:18 -0700 Subject: [PATCH 02/12] Update README.md --- examples/quantum_chinese_chess/README.md | 68 +++++++++++++++++++++++- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index badb4c69..c2e3243c 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -1,7 +1,71 @@ -# How to use the game +Quantum Chinese Chess +================ +[中文版](https://github.com/madcpf/unitary/blob/read2/examples/quantum_chinese_chess/README_ZH.md) -After cloning the Unitary library you can use command line flags to run the game: +This project is inspired by the [Quantum Chess project](https://quantumai.google/cirq/experiments/unitary/quantum_chess/concepts). It aims to introduce quantum moves to Chinese Chess (also called Xiangqi) so that the basic idea of quantum physics could be introduced to the players. + +## How to run the game + +After cloning the Unitary library you can use the following command line to run the game: ``` python -m examples.quantum_chinese_chess.chess ``` + +## Game rules +Game rules of Quantum Chinese Chess consist of classical and quantum rules. You may learn the classical Chinese Chess rules from the following sources: + - [Wikipedia page](https://en.wikipedia.org/wiki/Xiangqi) + + - [A Chess Player’s Guide to Xiangqi | The Basics of Chinese Chess](https://www.youtube.com/watch?v=vklqOLf6mtU) + + - [Chess vs. Xiangqi | A Comparison of Game Pieces and Moves](https://www.youtube.com/watch?v=kptxJgEEF5A) + +In addition to the classical rules, we introduce the quantum rules which allow pieces (except Kings) to split and merge: +| | Split / Merge | +|--|--| +|Kings|N| +|Advisors|Y| +|Elephants|Y| +|Horses|Y| +|Rooks|Y| +|Cannons|Y| +|Pawns|Y| + +For quantum moves, there are some restrictions that each piece needs to conform: +### Kings (a.k.a. Generals) +All moves are restricted within the `palace`. In the first version of the implementation, we don’t allow Kings to split or merge. + +### Advisors (a.k.a. Guards) +All (classical, quantum) moves are restricted within the `palace`. + +### Elephants (a.k.a. Bishops) +All moves are restricted within each player’s own side, i.e. not crossing the `river`. The condition "`elephant's eye is not blocked`" is checked for all elephants' moves. + +### Horses (a.k.a. Knights) +The condition "`horse's leg is not hobbled`" is checked for all horses' moves. + +### Rooks (a.k.a. Chariots) +No special restrictions. + +### Cannons +For a cannon to capture a target, i.e. `fire`, there should be exactly one `cannon platform` between the cannon and the target. If there are nonzero quantum pieces and less than 2 classical pieces in between, a measurement will be performed to determine if the `fire` could be made. + +### Pawns (a.k.a. Soldiers) +No split or merge is allowed before crossing the `river`. After crossing the `river`, neither split nor merge could move backward or stay at the same location, but could only move forward or horizontally. + +### Endgame rules +We still obey the `flying general rule`. As long as there is a non-zero probability of ending the game (e.g. there are no classical pieces but nonzero quantum pieces between two kings), we will measure the relevant pieces to determine whether the game ends. + +## Commands +Each location on the board is represented by two chars [abcdefghi][0-9], i.e. from `a0` to `i9`. The legal commands are (`s`=source, `t`=target) +- `s1t1` to do a classical move, e.g. "a1a4"; +- `s1^t1t2` to do a split move, e.g. "a1^b1a2"; +- `s1s2^t1` to do a merge move, e.g. "b1a2^a1"; + +Other commands: + +- `peek`: to peek (print a sample of) the current board state +- `peek all`: to print all possible board states with associated probabilities +- `undo`: to undo last move +- `help`: to see the commands list +- `exit`: to quit the game From 57c29ead9e9758ae015bba5939bdf57f6e1fb9da Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 22:59:57 -0700 Subject: [PATCH 03/12] Update README.md --- examples/quantum_chinese_chess/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index c2e3243c..931d45cc 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -12,6 +12,8 @@ After cloning the Unitary library you can use the following command line to run python -m examples.quantum_chinese_chess.chess ``` +Currently we don't have a graphical interface. Text display is supported at Linux terminal, Mac terminal, Colab, and Sublime Terminus. + ## Game rules Game rules of Quantum Chinese Chess consist of classical and quantum rules. You may learn the classical Chinese Chess rules from the following sources: - [Wikipedia page](https://en.wikipedia.org/wiki/Xiangqi) From 419d17012ca9e53c6f3a9b33acf95325fe22b654 Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 23:01:09 -0700 Subject: [PATCH 04/12] Delete examples/quantum_chinese_chess/README_ZH.md --- examples/quantum_chinese_chess/README_ZH.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 examples/quantum_chinese_chess/README_ZH.md diff --git a/examples/quantum_chinese_chess/README_ZH.md b/examples/quantum_chinese_chess/README_ZH.md deleted file mode 100644 index 8b137891..00000000 --- a/examples/quantum_chinese_chess/README_ZH.md +++ /dev/null @@ -1 +0,0 @@ - From ee66f23a7baca5f51894f7cf7e04bf256f2f9b02 Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 23:01:33 -0700 Subject: [PATCH 05/12] Update README.md --- examples/quantum_chinese_chess/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 931d45cc..e98bce2e 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -1,7 +1,5 @@ Quantum Chinese Chess ================ -[中文版](https://github.com/madcpf/unitary/blob/read2/examples/quantum_chinese_chess/README_ZH.md) - This project is inspired by the [Quantum Chess project](https://quantumai.google/cirq/experiments/unitary/quantum_chess/concepts). It aims to introduce quantum moves to Chinese Chess (also called Xiangqi) so that the basic idea of quantum physics could be introduced to the players. ## How to run the game From c30fa2d5c8d5039bbca88c9fcbad03023f1c6ddd Mon Sep 17 00:00:00 2001 From: madcpf Date: Sun, 21 Jul 2024 23:39:47 -0700 Subject: [PATCH 06/12] Update README.md --- examples/quantum_chinese_chess/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index e98bce2e..8d326681 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -69,3 +69,25 @@ Other commands: - `undo`: to undo last move - `help`: to see the commands list - `exit`: to quit the game + +## Quantum Concepts +### Superposition +With a split move, the board state becomes a [quantum superposition](https://en.wikipedia.org/wiki/Quantum_superposition) of two board states. For example, with "b9^a7c7", the left white horse is splitted from position b9 into a7 and c7: + +Screenshot 2024-07-21 at 11 09 31 PM + +And a `peek all` would show that the current board state is an equal superpostion of the following two states: + +Screenshot 2024-07-21 at 11 10 11 PM + +### Entanglement +Continuing the above example, with another white move "b7e7" the left white cannon is (possibly) moved to position e7: + +Screenshot 2024-07-21 at 11 16 36 PM + +But instead of being a superposition of four states (i.e. white horse and cannon each occupy one of two possible locations), there are actually only two possbile states, as shown by `peek all`: + +Screenshot 2024-07-21 at 11 17 19 PM + +, i.e. either the horse was in `a7` and the cannon successfully moved ot `e7`, or the horse is in `c7` and the cannon did not move at all. This is an example of [quantum entanglement](https://en.wikipedia.org/wiki/Quantum_entanglement). + From b24ff626fb3151a56e9b9e12e9499e6b46039a9e Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 13:22:54 -0700 Subject: [PATCH 07/12] Update README.md --- examples/quantum_chinese_chess/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 8d326681..5831acc0 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -32,25 +32,25 @@ In addition to the classical rules, we introduce the quantum rules which allow p |Pawns|Y| For quantum moves, there are some restrictions that each piece needs to conform: -### Kings (a.k.a. Generals) +### Kings (a.k.a. Generals) All moves are restricted within the `palace`. In the first version of the implementation, we don’t allow Kings to split or merge. -### Advisors (a.k.a. Guards) +### Advisors (a.k.a. Guards) All (classical, quantum) moves are restricted within the `palace`. -### Elephants (a.k.a. Bishops) +### Elephants (a.k.a. Bishops) All moves are restricted within each player’s own side, i.e. not crossing the `river`. The condition "`elephant's eye is not blocked`" is checked for all elephants' moves. -### Horses (a.k.a. Knights) +### Horses (a.k.a. Knights) The condition "`horse's leg is not hobbled`" is checked for all horses' moves. -### Rooks (a.k.a. Chariots) +### Rooks (a.k.a. Chariots) No special restrictions. ### Cannons For a cannon to capture a target, i.e. `fire`, there should be exactly one `cannon platform` between the cannon and the target. If there are nonzero quantum pieces and less than 2 classical pieces in between, a measurement will be performed to determine if the `fire` could be made. -### Pawns (a.k.a. Soldiers) +### Pawns (a.k.a. Soldiers) No split or merge is allowed before crossing the `river`. After crossing the `river`, neither split nor merge could move backward or stay at the same location, but could only move forward or horizontally. ### Endgame rules @@ -72,7 +72,7 @@ Other commands: ## Quantum Concepts ### Superposition -With a split move, the board state becomes a [quantum superposition](https://en.wikipedia.org/wiki/Quantum_superposition) of two board states. For example, with "b9^a7c7", the left white horse is splitted from position b9 into a7 and c7: +With a split move, the board state becomes a [quantum superposition](https://en.wikipedia.org/wiki/Quantum_superposition) of two board states. For example, with `b9^a7c7`, the left white horse is splitted from position `b9` into `a7` and `c7`: Screenshot 2024-07-21 at 11 09 31 PM @@ -81,7 +81,7 @@ And a `peek all` would show that the current board state is an equal superpostio Screenshot 2024-07-21 at 11 10 11 PM ### Entanglement -Continuing the above example, with another white move "b7e7" the left white cannon is (possibly) moved to position e7: +Continuing the above example, with another white move `b7e7` the left white cannon is (possibly) moved to position `e7`: Screenshot 2024-07-21 at 11 16 36 PM From 5eb044aad76e67185166dba64e5fb821e2fcbed6 Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 13:30:20 -0700 Subject: [PATCH 08/12] Update README.md --- examples/quantum_chinese_chess/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 5831acc0..711049a4 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -91,3 +91,14 @@ But instead of being a superposition of four states (i.e. white horse and cannon , i.e. either the horse was in `a7` and the cannon successfully moved ot `e7`, or the horse is in `c7` and the cannon did not move at all. This is an example of [quantum entanglement](https://en.wikipedia.org/wiki/Quantum_entanglement). +### Measurement +Given the following scenario, where we have splitted red rook, white horse and white cannon. + +Screenshot 2024-07-31 at 1 14 49 PM + +And the white player would like to make the move `e7e3` to capture the red horse. In this case we will make a [measurement](https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics) to check if there is exactly one `cannon platform` between the cannon and the target. Depennding on the measurement result, you should see one of the two scenarios (with equal probability): + +Screenshot 2024-07-31 at 1 16 29 PM +Screenshot 2024-07-31 at 1 15 56 PM + +In the left case, In the right case. But in both cases, note that other superposition pieces (red rook and white horse) are not affected, i.e. the whole board is still in a superposition state. From 31e2c471616230ae3c85ad737bac0b3a242af320 Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 14:22:04 -0700 Subject: [PATCH 09/12] Update README.md --- examples/quantum_chinese_chess/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 711049a4..7ba33a51 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -92,13 +92,16 @@ But instead of being a superposition of four states (i.e. white horse and cannon , i.e. either the horse was in `a7` and the cannon successfully moved ot `e7`, or the horse is in `c7` and the cannon did not move at all. This is an example of [quantum entanglement](https://en.wikipedia.org/wiki/Quantum_entanglement). ### Measurement -Given the following scenario, where we have splitted red rook, white horse and white cannon. +Given the following scenario, where there are splitted red rook, white horse and white cannon. Screenshot 2024-07-31 at 1 14 49 PM -And the white player would like to make the move `e7e3` to capture the red horse. In this case we will make a [measurement](https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics) to check if there is exactly one `cannon platform` between the cannon and the target. Depennding on the measurement result, you should see one of the two scenarios (with equal probability): +And the white player would like to make the move `e7e3` to capture the red horse. In this case we will make a [measurement](https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics) to check if there is exactly one `cannon platform` between the cannon and the target. Depending on the measurement result, you should see one of the two scenarios (with equal probability): Screenshot 2024-07-31 at 1 16 29 PM Screenshot 2024-07-31 at 1 15 56 PM -In the left case, In the right case. But in both cases, note that other superposition pieces (red rook and white horse) are not affected, i.e. the whole board is still in a superposition state. +In the left case, the `platform` is not there, so the capture is not made [1]. +In the right case, the `platform` is there, and the capture is made. But in both cases, note that other superposition pieces (red rook and white horse) are not affected, i.e. the whole board is still in a superposition state. + +[1] Note that in such cannon firing scenarios the player might want to have a `laser cannon`, i.e. to capture the red elephant instead, with the red horse as platform. This has not been implemented. Feel free to submit such pull requests! From 6b440e97b0137616968683c96ac8d7eb1fd537c0 Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 15:06:26 -0700 Subject: [PATCH 10/12] Update README.md --- examples/quantum_chinese_chess/README.md | 49 ++++++++++++++++-------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 7ba33a51..7e738d00 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -1,6 +1,8 @@ Quantum Chinese Chess ================ -This project is inspired by the [Quantum Chess project](https://quantumai.google/cirq/experiments/unitary/quantum_chess/concepts). It aims to introduce quantum moves to Chinese Chess (also called Xiangqi) so that the basic idea of quantum physics could be introduced to the players. +This project is inspired by the [Quantum Chess project](https://quantumai.google/cirq/experiments/unitary/quantum_chess/concepts). +It aims to introduce quantum moves to Chinese Chess (also called Xiangqi) so that the basic idea of quantum physics could be +introduced to the players. ## How to run the game @@ -10,10 +12,12 @@ After cloning the Unitary library you can use the following command line to run python -m examples.quantum_chinese_chess.chess ``` -Currently we don't have a graphical interface. Text display is supported at Linux terminal, Mac terminal, Colab, and Sublime Terminus. +Currently we don't have a graphical interface. Text display is supported at Linux terminal, Mac terminal, Colab, and Sublime +Terminus. ## Game rules -Game rules of Quantum Chinese Chess consist of classical and quantum rules. You may learn the classical Chinese Chess rules from the following sources: +Game rules of Quantum Chinese Chess consist of classical and quantum rules. You may learn the classical Chinese Chess rules +from the following sources: - [Wikipedia page](https://en.wikipedia.org/wiki/Xiangqi) - [A Chess Player’s Guide to Xiangqi | The Basics of Chinese Chess](https://www.youtube.com/watch?v=vklqOLf6mtU) @@ -33,13 +37,15 @@ In addition to the classical rules, we introduce the quantum rules which allow p For quantum moves, there are some restrictions that each piece needs to conform: ### Kings (a.k.a. Generals) -All moves are restricted within the `palace`. In the first version of the implementation, we don’t allow Kings to split or merge. +All moves are restricted within the `palace`. In the first version of the implementation, we don’t allow Kings to split or +merge. ### Advisors (a.k.a. Guards) All (classical, quantum) moves are restricted within the `palace`. ### Elephants (a.k.a. Bishops) -All moves are restricted within each player’s own side, i.e. not crossing the `river`. The condition "`elephant's eye is not blocked`" is checked for all elephants' moves. +All moves are restricted within each player’s own side, i.e. not crossing the `river`. The condition "`elephant's eye is not +blocked`" is checked for all elephants' moves. ### Horses (a.k.a. Knights) The condition "`horse's leg is not hobbled`" is checked for all horses' moves. @@ -48,16 +54,22 @@ The condition "`horse's leg is not hobbled`" is checked for all horses' moves. No special restrictions. ### Cannons -For a cannon to capture a target, i.e. `fire`, there should be exactly one `cannon platform` between the cannon and the target. If there are nonzero quantum pieces and less than 2 classical pieces in between, a measurement will be performed to determine if the `fire` could be made. +For a cannon to capture a target, i.e. `fire`, there should be exactly one `cannon platform` between the cannon and the +target. If there are nonzero quantum pieces and less than 2 classical pieces in between, a measurement will be performed to +determine if the `fire` could be made. ### Pawns (a.k.a. Soldiers) -No split or merge is allowed before crossing the `river`. After crossing the `river`, neither split nor merge could move backward or stay at the same location, but could only move forward or horizontally. +No split or merge is allowed before crossing the `river`. After crossing the `river`, neither split nor merge could move +backward or stay at the same location, but could only move forward or horizontally. ### Endgame rules -We still obey the `flying general rule`. As long as there is a non-zero probability of ending the game (e.g. there are no classical pieces but nonzero quantum pieces between two kings), we will measure the relevant pieces to determine whether the game ends. +We still obey the `flying general rule`. As long as there is a non-zero probability of ending the game (e.g. there are no +classical pieces but nonzero quantum pieces between two kings), we will measure the relevant pieces to determine whether +the game ends. ## Commands -Each location on the board is represented by two chars [abcdefghi][0-9], i.e. from `a0` to `i9`. The legal commands are (`s`=source, `t`=target) +Each location on the board is represented by two chars [abcdefghi][0-9], i.e. from `a0` to `i9`. The legal commands are +(`s`=source, `t`=target) - `s1t1` to do a classical move, e.g. "a1a4"; - `s1^t1t2` to do a split move, e.g. "a1^b1a2"; - `s1s2^t1` to do a merge move, e.g. "b1a2^a1"; @@ -72,7 +84,8 @@ Other commands: ## Quantum Concepts ### Superposition -With a split move, the board state becomes a [quantum superposition](https://en.wikipedia.org/wiki/Quantum_superposition) of two board states. For example, with `b9^a7c7`, the left white horse is splitted from position `b9` into `a7` and `c7`: +With a split move, the board state becomes a [quantum superposition](https://en.wikipedia.org/wiki/Quantum_superposition) +of two board states. For example, with `b9^a7c7`, the left white horse is splitted from position `b9` into `a7` and `c7`: Screenshot 2024-07-21 at 11 09 31 PM @@ -85,23 +98,29 @@ Continuing the above example, with another white move `b7e7` the left white cann Screenshot 2024-07-21 at 11 16 36 PM -But instead of being a superposition of four states (i.e. white horse and cannon each occupy one of two possible locations), there are actually only two possbile states, as shown by `peek all`: +But instead of being a superposition of four states (i.e. white horse and cannon each occupy one of two possible locations), +there are actually only two possbile states, as shown by `peek all`: Screenshot 2024-07-21 at 11 17 19 PM -, i.e. either the horse was in `a7` and the cannon successfully moved ot `e7`, or the horse is in `c7` and the cannon did not move at all. This is an example of [quantum entanglement](https://en.wikipedia.org/wiki/Quantum_entanglement). +, i.e. either the horse was in `a7` and the cannon successfully moved ot `e7`, or the horse is in `c7` and the cannon did not move at all. +This is an example of [quantum entanglement](https://en.wikipedia.org/wiki/Quantum_entanglement). ### Measurement Given the following scenario, where there are splitted red rook, white horse and white cannon. Screenshot 2024-07-31 at 1 14 49 PM -And the white player would like to make the move `e7e3` to capture the red horse. In this case we will make a [measurement](https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics) to check if there is exactly one `cannon platform` between the cannon and the target. Depending on the measurement result, you should see one of the two scenarios (with equal probability): +And the white player would like to make the move `e7e3` to capture the red horse. In this case we will make a +[measurement](https://en.wikipedia.org/wiki/Measurement_in_quantum_mechanics) to check if there is exactly one `cannon platform` between the +cannon and the target. Depending on the measurement result, you should see one of the two scenarios (with equal probability): Screenshot 2024-07-31 at 1 16 29 PM Screenshot 2024-07-31 at 1 15 56 PM In the left case, the `platform` is not there, so the capture is not made [1]. -In the right case, the `platform` is there, and the capture is made. But in both cases, note that other superposition pieces (red rook and white horse) are not affected, i.e. the whole board is still in a superposition state. +In the right case, the `platform` is there, and the capture is made. But in both cases, note that other superposition pieces (red rook and +white horse) are not affected, i.e. the whole board is still in a superposition state. -[1] Note that in such cannon firing scenarios the player might want to have a `laser cannon`, i.e. to capture the red elephant instead, with the red horse as platform. This has not been implemented. Feel free to submit such pull requests! +[1] Note that in such cannon firing scenarios the player might want to have a `laser cannon`, i.e. to capture the red elephant instead, +with the red horse as platform. This has not been implemented. Feel free to submit such pull requests! From 5e45a1c01905363b8b9bb26c1dd7017fe444bcd7 Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 15:07:32 -0700 Subject: [PATCH 11/12] Update README.md --- examples/quantum_chinese_chess/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index 7e738d00..bf1ff301 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -6,7 +6,7 @@ introduced to the players. ## How to run the game -After cloning the Unitary library you can use the following command line to run the game: +After cloning the Unitary library, you can use the following command line to run the game: ``` python -m examples.quantum_chinese_chess.chess From e99c99c76105841c345a87d09105fb8e69dba599 Mon Sep 17 00:00:00 2001 From: madcpf Date: Wed, 31 Jul 2024 15:10:20 -0700 Subject: [PATCH 12/12] Update README.md --- examples/quantum_chinese_chess/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quantum_chinese_chess/README.md b/examples/quantum_chinese_chess/README.md index bf1ff301..d443eb05 100644 --- a/examples/quantum_chinese_chess/README.md +++ b/examples/quantum_chinese_chess/README.md @@ -12,7 +12,7 @@ After cloning the Unitary library, you can use the following command line to run python -m examples.quantum_chinese_chess.chess ``` -Currently we don't have a graphical interface. Text display is supported at Linux terminal, Mac terminal, Colab, and Sublime +Currently, we don't have a graphical interface. Text display is supported at Linux terminal, Mac terminal, Colab, and Sublime Terminus. ## Game rules