• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

JDGaraudEnsta/hanabi: Hanabi deck, game engine and AI.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

JDGaraudEnsta/hanabi

开源软件地址:

https://github.com/JDGaraudEnsta/hanabi

开源编程语言:

Python 94.2%

开源软件介绍:

Hanabi project

This project is for educational purposes: its current status should represent the student's starting point.

Hanabi module

A python3 module that knows Hanabi:

  • card deck and dealer,
  • CLI (command line interface), lets you play and verifies that your moves are allowed (currently limited to 2 players),
  • GUI (to do),
  • AI (currently only one, and it is cheating).

Tasks

There are many possible tasks:

  • read the current state of the module,

    • complete its documentation when needed,
    • share with everyone this improvement,
  • improve the CheaterAI -- answer the question (still an open question afaik): what is the best possible score, statistically speaking?

  • add AIs. Some suggestions:

    • RandomAI (plays randomly),
    • DirectAI (plays whatever is hinted),
    • BGAAI (plays Board Game Arena's standard),
    • HansimAI (see below),
    • train a machine learning (I'm not sure if this will give anything interesting without powerful CPU/GPU resources),
    • design your own, from scratch or by improving an existing one.

Keep track of scores for all these games/AI. We will want to compare: different AIs on a same deck, or a given AI over a 1000 decks. We will need to see why a certain AI fails on a certain game.

  • make it workable for up to 5 players.

  • make it workable from two separate screens (network?)

  • you may also design a GUI, but be warned that this is a very time-consuming task. I like PySide2. Tkinter is more portable but harder to learn imho.

During the project:

  • make sure you understand the "replay" mode
  • add tests (UnitTest or whole tests)
  • keep notes on your questions, decisions, discussions (github's wiki)

Installation

For Linux and Mac:

git clone https://github.com/JDGaraudEnsta/hanabi
cd hanabi
git pull
make        # pip installs it in the default directory ~/.local
hanabi
# and now you may play

If hanabi doesn't start (bash: hanabi: command not found), add this to your ~/.bashrc:

export PATH=$HOME/.local/bin:$PATH

For Windows, first dependencies:

pip install pyreadline

then the installation:

cd hanabi/src
python3 setup.py install --user

Bibliography

Other Hanabi projects

AI (deep learning)

Misc (coding principles, project, ...)




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap