Skip to main content

All algorithms of minesweeper

Project description

Solvable-Minesweeper

黑猫扫雷v2.2.5——包含8种模式的扫雷项目及高性能算法工具箱

SolvableMinesweeper

黑猫扫雷v2.2.5是由真正擅长扫雷的玩家开发的扫雷游戏,为高级玩家量身定制。内部集成了三大判雷引擎,具有全部6种无猜扫雷模式+标准+win7。采用Python/PyQt5及Rust编写,具有很高的内存安全性及速度。不同于Arbiter的专业、Minesweeper X的小巧,黑猫扫雷的开发人员希望制作出一款高度智能的扫雷。外观上它只是一款普通的标准扫雷,但它能任意调大小,能调整窗口的透明度。在游戏性方面,弱可猜、强可猜的模式都是独一无二的,也是唯一自带新手教程的扫雷。对于高玩来说,它又是专业的,能够计算3BV/s、STNB、RQP指标并展示。此外,它不会打扰玩家,当玩家不去主动打开时,就不会弹出任何窗口,且任何窗口都可以按下空格键快速关闭。

目前还在开发过程中,欢迎提意见。

Black Cat Minesweeper v2.2.5, which integrates three major internal mine detection engines, with all six kinds of no-guess minesweeper mode + standard + Win7. Using Python/PyQt5 and Rust, has high safety in memory and speed is different from the Arbiter of professional Minesweeper X of small, black cats demining developers hope to create a cool mine clearance Appearance, it is only a common standard mine, but it can adjust the size at will, can adjust the transparency of the window In terms of gameplay, weak can guess the strong can guess the mode is unique, and the only one of mine own tutorials For high play, it is professional, can calculate 3 bv/s STNBIn addition, it doesn't bother the player, no window pops up when the player doesn't open it, and any window can be quickly closed by pressing the space bar.

使用教程:https://mp.weixin.qq.com/s/gh9Oxtv9eHaPTUMTDwX-fg

安装

建议在Windows 10下运行本游戏,其它操作系统未经测试,可能出现意想不到的问题。

通过网盘安装(推荐)

在下面的下载链接中找到最新的版本,然后下载,解压,直接运行main.exe文件,开箱即用。

通过Github Actions安装

Github Actions找到构建成功的最近一次提交,点击更新内容,在Artifacts页面可以找到打包好的文件,后面步骤同上。这个方法可以体验最新功能,但不保证稳定性。

从源码安装(不推荐)

在编译之前,请确保自己拥有:

  • Python 3.7/Python 3.8(Python 3.9会找不到ms_toollib.pyd,原因不明)
  • Rust
  • 会用Powershell或者其它命令行工具的能力

以下为安装步骤:

  • 克隆这个仓库到本地
    git clone https://github.com/eee555/Solvable-Minesweeper.git
  • 安装Python依赖
    pip install -r requirements.txt # Windows
    pip3 install -r requirements.txt # *nix
  • 用Rust编译扫雷核心引擎
    cd toollib
    cargo build --release
    cd ..
    cp toollib/target/release/ms_toollib.dll src/ms_toollib.pyd
  • 运行程序,大功告成了~
    py -3 src/main.py # Windows
    python3 src/main.py # *nix

实现原理

(还没写,计划弄出3.5以后回头来写)

同类项目

  • kaboom:弱无猜扫雷。
  • Simon Tatham's Mines:竞速无猜扫雷。带有局面调整算法,雷数很多时也能埋雷成功。
  • FairMinesweeper:无猜扫雷。不一定能跑通。
  • minegauler:标准扫雷。采用PyQt5实现,有一种在一个格子中埋多个雷的模式。
  • LibreMines:标准扫雷。采用Qt实现。

与同类项目相比,本项目更优秀。

下载链接

正式版v2.2:

算法优化:埋雷速度达到37525局/秒,相当于Arbiter的三倍左右,无猜局面埋雷速度15.7局/秒。游戏结束按空格可以显示实力指标的极坐标图。删去了一些无用的功能。

链接:https://wws.lanzous.com/iq9Ocm8zdtc

正式版v2.2.5:

算法优化:无猜局面埋雷速度达到约252局/秒。修复了上一个版本的严重bug。

链接:https://wws.lanzous.com/iS3wImv2y5e

测试版v2.2.6-alpha:

测试版v2.2.6-alpha:修复了若干bug。算法优化:(16,16,72)无猜局面埋雷速度提高200%。新功能:快捷键4、5、6可以快速设置三种不同的自定义的自定义模式。对自定义模式的优化,提高了稳定性。对局面刷新的优化。

链接:https://wwe.lanzous.com/igPFFo7mwxi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyminesweeper-1.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page