Jeremy Muhlich > Games-Die-0.05 > Games::Die

Download:
Games-Die-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source   Latest Release: Games-Die-0.1-TRIAL

NAME ^

Games::Die

DESCRIPTION ^

Games::Die provides an object-oriented implementation of a die. The die may contain any number of sides, not just those for which a physical implementation is possible/feasible. You can create a 7-, 29-, or 341-sided die if the mood strikes you. There is no limit to the number of sides.

SYNOPSIS ^

  $six_sided = new Games::Die(6);

  $twenty_sided = new Games::Die();
  $twenty_sided->sides(20);

  $result = $six_sided->roll() + $twenty_sided->roll();

CONSTRUCTOR ^

PUBLIC METHODS ^

AUTHORS ^

Andrew Burke (burke@bitflood.org)
Jeremy Muhlich (jmuhlich@bitflood.org)
syntax highlighting: