├── main.py # file chính build game └── Scripts ├── board.py # tạo bảng mìn ├── game.py # quản lý gameplay ├── piece.py # xử lý thao tác từng phần tử của bảng └── Solver.py # chuyển động di chuyển chuột của user └── States.py # state win , lose, option , menu └── bnt.py # UI for create a button └── music └── images
python -m pip install pygame
python -m pip install requirements.txt
python -m main.py
scheme | rows | cols | mines | |
---|---|---|---|---|
Basic | 4 | 4 | <= 50% * 16 | Choose |
Normal | 9 | 9 | 20 | <= 50% * 81 |
Hard | 19 | 19 | <= 50 % (19*19) | Choose |
- Cấu trúc tổ chức file : run file
main.py
để hiển thị màn hình- File
board.py
: khởi tạo bảnng chơi, check game win - File
game.py
: code UI (picture, music, stage etc) - file
piece.py
: các thông số thay đổi khi chơi game - file
solver.py
: di chuyển chuột
- File