Zach Morgan > Games-Go-Cinderblock-0.12 > Games::Go::Cinderblock::MoveResult

Download:
Games-Go-Cinderblock-0.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Games-Go-Cinderblock-0.13

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', 'collision'

basis_state

resulting_state

delta

"resulting_state" minus "basis_state", essentially.

A delta is an object that describes changes between 2 states with the same rulemap.

syntax highlighting: