シェイクするとゲームが始まります。
Aボタンを押すとLEDが順番に点灯します。
機雷があると思う位置でBボタンを押してください。
当たれば "Hit!" 、近ければ "Near" 、遠ければ "Far" の表示が出ます。
シェイクするまで何度でもできますので、
"Near" と "Far" の手がかりを使って位置を当ててください。
答えを知りたいときは、AボタンとBボタンを同時に押してください。
Shake to start the game.
When you press the A button, the LEDs will light up in order.
Press the B button at the position where you think there is a mine.
If it hits, "Hit!" Will be displayed, if it is close, "Near" will be displayed, and if it is far, "Far" will be displayed.
You can do it as many times as you like until you shake it, so use the "Near" and "Far" clues to locate it.
If you want to know the answer, press the A and B buttons at the same time.
メイクコードはこちら。 Makecode is here↓
https://makecode.microbit.org/_0cPX1Ycvgc5g
このページを開く https://hiroyuki-moriya.github.io/minesweeper_python/
このリポジトリは、MakeCode で 拡張機能 として追加できます。
- https://makecode.microbit.org/ を開く
- 新しいプロジェクト をクリックしてください
- ギアボタンメニューの中にある 拡張機能 をクリックしてください
- https://github.com/hiroyuki-moriya/minesweeper_python を検索してインポートします。
MakeCode でこのリポジトリを編集します。
- https://makecode.microbit.org/ を開く
- 読み込む をクリックし、 URLから読み込む... をクリックしてください
- https://github.com/hiroyuki-moriya/minesweeper_python を貼り付けてインポートをクリックしてください
この画像はマスター内の最後のコミットからのブロックコードを示しています。 このイメージは更新に数分かかる場合があります。
- for PXT/microbit