Home

Awesome

hanabi-bot

This is a framework for creating Hanabi bots that play with each other. It is written in Go. Eventually, the idea is to have the option for players to play together with bots on Hanabi Live.

<br />

Instructions for Coding a New Strategy

Copy the "strategy_dumb.go" file and rename it to "strategy_whatever.go". Fill in all of the functions. Then, add whateverInit() to the "strategy.go" file.

<br />

Installation (for experts)

<br />

Installation (for noobs/contributors)

Like many code projects, we use golangci-lint to ensure that all of the code is written consistently and error-free. We ask that all pull requests pass our linting rules.

The following instructions will set up the development environment and the linter. This assumes you are on Windows and will be using Microsoft's Visual Studio Code, which is a very nice text editor that happens to be better than Atom, Notepad++, etc. If you are using a different OS/editor, some adjustments will be needed (e.g. using brew on MacOS instead of choco).

Note that these steps require an elevated (administrator) command-shell.