Games::Go::Player

Plays a game of Go
Download

Games::Go::Player Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Gilder
  • Publisher web site:
  • http://search.cpan.org/~deg/

Games::Go::Player Tags


Games::Go::Player Description

Plays a game of Go Games::Go::Player is a Perl module that plays a game of Go.SYNOPSISThis program generates a move on a Go board according to patterns that it learns from game records in SGF.It puts patterns into a database (called pattern). Which databases are updated depends on $self->{_veclengths}. Pattern information is stored in a hash, where the key is the pattern, (compressed using vec) and the value contains a score for each point on the pattern from 0 to 255. A pattern point is either empty, black, white, or 'not on the board'For an example script that instructs Player to learn from a particular directory, see pluserdir.pl in the scripts folder.To play a move: my $move = $player->chooselegalmove($colour, $referee); $referee->play($colour, $move); $player->update($colour, $referee);Or see kgspot.pl which is included in the scripts folder.Before learning, the following parts of the 'new' method can (and in some cases, should) be edited:$self->{_maxmove} For example, its probably not worth looking beyond move 10 when matching whole board 19x19 games.$self->{_weakest} For example, if matching patterns from a 9 handicap game between a 3 kyu and a 12 kyu, you may want to disregard the moves of the 12kyuThe function loadratings can be tweaked as you see fit. For example, at the moment it gives a higher score to a move close to the centre of a pattern than one on the edge. Requirements: · Perl


Games::Go::Player Related Software