AI::Evolve::Befunge::Critter::Result - results object
This object stores the fate of a critter. It stores whether it died or lived, what the error message was (if it died), whether it won, and if it was playing a board game, whether it choose a move. It also stores some statistical information about how many moves it made, and stuff like that.
Result->new();
Create a new Result object.
Automatically generated accessor methods exist for the following fields:
Indicates the choice of positions to play (for board game physics engines).
Integer value, true if the critter died.
String value, indicates the error message returned by eval, to indicate the reason for a critter's death.
Name of the critter, according to its blueprint.
Integer value supplied by the Physics engine, indicates how well it thought the critter did.
Some additional statistics generated by the run_board_game method in Physics.pm.
Integer value indicating how much "currency" the critter had left over. Higher numbers mean the critter consumed fewer resources.
Integer value, true if the critter won (as determined by the Physics engine).
These values may be set using the accessors (like: $result->died(1) ), or they may be initialized by the constructor (like: Result->new(died => 1) ).
To install AI::Evolve::Befunge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::Evolve::Befunge
CPAN shell
perl -MCPAN -e shell install AI::Evolve::Befunge
For more information on module installation, please visit the detailed CPAN module installation guide.