AI::Evolve::Befunge::PhysicsPhysics engine base class | |
Download |
AI::Evolve::Befunge::Physics Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Mark Glines
- Publisher web site:
- http://search.cpan.org/~infinoid/
AI::Evolve::Befunge::Physics Tags
AI::Evolve::Befunge::Physics Description
Physics engine base class AI::Evolve::Befunge::Physics is a physics engine base class.SYNOPSISFor a rules plugin (game or application): register_physics( name => "ttt", token => ord('T'), decorate => 0. board_size => Language::Befunge::Vector->new(3, 3), commands => { M => &AI::Evolve::Befunge::Physics::op_board_make_move }, );For everyone else: $ttt = Physics->new('ttt'); my $score = $ttt->double_match($blueprint1, $blueprint2);This module serves a double purpose.First, it serves as a plugin repository for Physics engines. It allows physics engines to register themselves, and it allows callers to fetch entries from the database (indexed by the name of the Physics engine).Second, it serves as a base class for Physics engines. It creates class instances to represent a Physics engine, and given a blueprint or two, allows callers to run creatures in a universe which follow the rules of that Physics engine. Requirements: · Perl
AI::Evolve::Befunge::Physics Related Software