Go game playing software.
Pattern information is stored in a hash where the key is the pattern and the value contains a score for each point on the pattern from 0 to 255. A pattern point can be empty, black, white, or 'not on the board', ensuring that the AI has the same understanding of the board as human players. An example script is included in the scripts folder that instructs Player to learn from a particular directory so that users can get started quickly.
When it comes time to play a move, the process is simple. Users can call the chooselegalmove function with the player's color and the referee object as parameters. The function returns the AI's move, which can then be played using the play function of the referee object. Lastly, the update function can be called to update the color and referee parameters.
For those looking to customize the program, options are available to edit the new method in the learning process. The _maxmove parameter can be adjusted so that the AI stops looking for moves beyond a certain move number, while the _weakest parameter allows for the AI to disregard the moves of weaker players. The loadratings function can also be tweaked to give preference to specific patterns.
Overall, Games::Go::Player is an excellent choice for those looking to play Go without a human opponent. The AI's ability to learn from game records and adjust based on customizable parameters provides users with a fun and challenging experience that is sure to hone their skills.
Version 0.07: N/A