Skip to content

Hiroyuki-Moriya/minesweeper_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro:bit Game 機雷掃海 マインスイーパー MineSweeper

シェイクするとゲームが始まります。
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 で 拡張機能 として追加できます。

このプロジェクトを編集します ビルド ステータス バッジ

MakeCode でこのリポジトリを編集します。

ブロックのプレビュー

この画像はマスター内の最後のコミットからのブロックコードを示しています。 このイメージは更新に数分かかる場合があります。

生成されたブロック

メタデータ (検索、レンダリングに使用)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>