一个高性能的神经网络五子棋AI引擎,支持GUI界面和命令行操作。
- 🧠 基于神经网络的AI引擎
- 🎮 图形用户界面(Pygame)
- 💻 命令行界面
- 📊 性能基准测试
- 🐳 Docker支持
- 📈 机器学习优化
- 🧪 完整的测试覆盖
# 克隆仓库
git clone https://github.com/nichengfuben/NeuralFive
cd neuralfive
# 创建虚拟环境
python -m venv venv
source venv/bin/activate # Linux/macOS
# 或
.\venv\Scripts\activate # Windows
# 安装依赖
pip install -r requirements.txt
pip install -r requirements-dev.txt
# 安装预提交钩子
pre-commit install# GUI模式
python -m neuralfive --gui
# 命令行模式
python -m neuralfive --cli
# 基准测试
python -m neuralfive-benchmark# 构建镜像
docker build -t neuralfive .
# 运行容器
docker run -p 8000:8000 neuralfive
# 开发环境
docker-compose up neuralfive-devneuralfive/
├── src/ # 源代码
│ ├── main.py # 主入口
│ ├── cli.py # 命令行接口
│ ├── benchmark.py # 基准测试
│ └── neuralfive/ # 核心包
├── tests/ # 测试文件
├── docs/ # 文档
├── requirements.txt # 生产依赖
├── requirements-dev.txt # 开发依赖
├── pyproject.toml # 项目配置
└── Dockerfile # Docker配置
# 代码格式化
black src/ tests/
isort src/ tests/
# 代码检查
flake8 src/ tests/
mypy src/
bandit -r src/
# 运行测试
pytest
pytest --cov=src --cov-report=html# 构建文档
cd docs
make html
# 查看文档
open _build/html/index.html- Fork 仓库
- 创建特性分支 (
git checkout -b feature/amazing-feature) - 提交更改 (
git commit -m 'Add some amazing feature') - 推送到分支 (
git push origin feature/amazing-feature) - 创建 Pull Request
MIT License - 详见 LICENSE 文件
- 你的名字 - @yourtwitter
- 五子棋AI算法研究社区
- Pygame开发团队
- 开源机器学习框架贡献者