-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into github-pages
- Loading branch information
Showing
4 changed files
with
151 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,69 @@ | ||
# quantum-minesweeper | ||
Quantum minesweeper | ||
https://yui10.github.io/quantum-minesweeper/ | ||
|
||
※量子力学についての知見がないため,本文章・ゲームにおいて,量子力学に関する考え方の厳密性は保証出来ません. | ||
|
||
## 概要 | ||
|
||
爆弾が量子的な存在になったマインスイーパー.<br> | ||
|
||
マインスイーパーは,周囲に存在するボムの個数を元にゲームを進めます.この時,ボムは必ずその個数分,周囲のいずれかのマスに存在しその全てを**観測することが出来ます**.<br> | ||
本ゲームでは,この知覚する部分において,量子的存在での観測しかできないようになっています. | ||
|
||
## 挙動について | ||
本ゲームにおける挙動を解説します.<br> | ||
例えば周囲に2マスの空白マスが存在しいずれもボムと仮定します. | ||
|
||
### 従来のマインスイーパーの場合 | ||
この場合,従来のマインスイーパーでは以下の様に表示されます. | ||
| | | | | | ||
|:-:|:-:|:-:|:-:| | ||
|1 |2 |2 |1 | | ||
|1 |■ |■ |1 | | ||
|1 |2 |2 |1 | | ||
|
||
このためこの2マスは両方とも開けてはいけないことが分かります. | ||
|
||
### quantum-minesweeperの場合 | ||
本ゲームの場合は,同じ状態の時で上記の状態に加えて,以下の状態になる可能性があります. | ||
| | | | | | ||
|:-:|:-:|:-:|:-:| | ||
|0 |0 |0 |0 | | ||
|0 |■ |■ |0 | | ||
|0 |0 |0 |0 | | ||
|
||
| | | | | | ||
|:-:|:-:|:-:|:-:| | ||
|0 |1 |1 |1 | | ||
|0 |■ |■ |1 | | ||
|0 |1 |1 |1 | | ||
|
||
| | | | | | ||
|:-:|:-:|:-:|:-:| | ||
|1 |1 |1 |0 | | ||
|1 |■ |■ |0 | | ||
|1 |1 |1 |0 | | ||
|
||
この様に表示されても実際には爆弾が存在します. | ||
この状態の変化は以下の操作によって変化します. | ||
- 何らかのマスがあけられた | ||
- 旗を立てた | ||
- 立てた旗を取り消した | ||
- 観測するためのボタンをクリックした | ||
|
||
もし,十分な観測を行わずに開けるとゲームオーバーになるので十分な回数の観測を行うことを推奨します. | ||
|
||
### その他 | ||
普通のマインスイーパーをしたい場合,ソースコードを弄ることで一時的に出来ます.一応,以下の方法で出来ますが今後のプログラムの変更によって出来なくなる可能性があります.ご了承ください. | ||
1. ブラウザのデベロッパーツールを開き Sources タブを開く | ||
2. js/game.jsを開く | ||
3. ``GetBombCountMap()``を見つけだし | ||
``` | ||
const item = [GameItem.EMPTY, GameItem.BOMB]; | ||
``` | ||
を | ||
``` | ||
const item = [GameItem.BOMB]; | ||
``` | ||
にする | ||
4. 保存する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters