https://github.com/kazuhito00/pyxel-hexminessweeper
Pyxelで作成されたヘックス型マインスイーパゲーム
https://github.com/kazuhito00/pyxel-hexminessweeper
hex minesweeper python pyxel
Last synced: 2 months ago
JSON representation
Pyxelで作成されたヘックス型マインスイーパゲーム
- Host: GitHub
- URL: https://github.com/kazuhito00/pyxel-hexminessweeper
- Owner: Kazuhito00
- License: apache-2.0
- Created: 2025-07-07T14:07:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T00:21:25.000Z (3 months ago)
- Last Synced: 2025-08-08T14:03:18.965Z (2 months ago)
- Topics: hex, minesweeper, python, pyxel
- Language: Python
- Homepage: https://Kazuhito00.github.io/Pyxel-HexMinesSweeper
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!NOTE]
> このリポジトリはGemini CLIを用いて作成された試験的なリポジトリです
> * ソースコードは手直しなし
> * READMEはNOTEとAuthorのみ追記
> * パッケージングとWeb公開用htmlは手動作成# Pyxel HexMinesweeper
Pyxelで作成されたヘックス型マインスイーパゲームです。
## 特徴
- ヘックス型グリッド
- マインスイーパのゲームロジック
- セルのフラグ立て
- タイマー
- 勝利/敗北条件## インストール
1. リポジトリをクローンします:
```bash
git clone https://github.com/your-username/Pyxel-HexMinesweeper.git
cd Pyxel-HexMinesweeper
```2. 依存関係をインストールします:
```bash
pip install -r requirements.txt
```## 実行方法
[こちら](https://kazuhito00.github.io/Pyxel-HexMinesSweeper/)でプレイできます。
```bash
python main.py
```## 操作方法
- **左クリック:** セルをオープンする。
- **右クリック:** セルにフラグを立てる/外す。
- **Q:** ゲームを終了する。
- **R:** ゲームを再開する。## ゲームルール
- 目的は、隠された「地雷」を含まないヘックス型グリッドを、地雷を爆発させることなくクリアすることです。
- セルをオープンすると、隣接するセルに地雷がいくつあるかを示す数字が表示されます。
- 地雷をオープンすると、ゲームオーバーです。
- 地雷以外のすべてのセルがオープンされると、ゲームクリアです。## License
Pyxel HexMinesweeper is under [Apache 2.0 License](LICENSE).## Author
高橋かずひと(https://twitter.com/KzhtTkhs)---
> [!NOTE]
> This repository is an experimental repository created using Gemini CLI.
> * The source code has not been changed since it was automatically generated.
> * Only NOTE and Author have been added to the README.
> * The package and HTML for web publishing were created manually.# Pyxel HexMinesweeper
A Hexagonal Minesweeper game built with Pyxel.
## Features
- Hexagonal grid
- Minesweeper game logic
- Flagging cells
- Timer
- Win/Loss conditions## Installation
1. Clone the repository:
```bash
git clone https://github.com/your-username/Pyxel-HexMinesweeper.git
cd Pyxel-HexMinesweeper
```2. Install dependencies:
```bash
pip install -r requirements.txt
```## How to Run
You can play it [here](https://kazuhito00.github.io/Pyxel-HexMinesSweeper/).
```bash
python main.py
```## Controls
- **Left Click:** Reveal a cell.
- **Right Click:** Flag/unflag a cell.
- **Q:** Quit the game.
- **R:** Restart the game.## Game Rules
- The goal is to clear a hexagonal grid containing hidden "mines" without detonating any of them.
- When you reveal a cell, it will show a number indicating how many mines are in its adjacent cells.
- If you reveal a mine, the game is over.
- You can "flag" cells that you suspect contain mines to avoid revealing them.
- The game is won when all non-mine cells are revealed.## License
Pyxel HexMinesweeper is under [Apache 2.0 License](LICENSE).## Author
Kazuhito Takahashi(https://twitter.com/KzhtTkhs)