The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Games::Go::Cinderblock::MoveResult

DESCRIPTION

This results from evaluate_move.

It has a "delta", which describes changes to the board

ATTRIBUTES

rulemap

succeeded

0 if move failed, 1 if move succeeded.

reason

If failed, this is why. e.g. 'suicide', 'collosion'

basis_state

resulting_state

delta

"resulting_state" minus "basis_state", essentially.

A delta is a hashref with 'remove' & 'add' keys; its values are lists of [color,node] pairs...