An open API service indexing awesome lists of open source software.

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で作成されたヘックス型マインスイーパゲーム

Awesome Lists containing this project

README

          

> [!NOTE]
> このリポジトリはGemini CLIを用いて作成された試験的なリポジトリです
> * ソースコードは手直しなし
> * READMEはNOTEとAuthorのみ追記
> * パッケージングとWeb公開用htmlは手動作成

# Pyxel HexMinesweeper

Pyxelで作成されたヘックス型マインスイーパゲームです。
![image](https://github.com/user-attachments/assets/73eb78ef-b0e7-4668-8a51-444f536bd3dd)

## 特徴

- ヘックス型グリッド
- マインスイーパのゲームロジック
- セルのフラグ立て
- タイマー
- 勝利/敗北条件

## インストール

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.
![image](https://github.com/user-attachments/assets/73eb78ef-b0e7-4668-8a51-444f536bd3dd)

## 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)