Games::Crossword::Puzzle::Cell - one of those little square bits with a number


Games-Crossword-Puzzle documentation  | view source Contained in the Games-Crossword-Puzzle distribution.

Index


NAME

Top

Games::Crossword::Puzzle::Cell - one of those little square bits with a number

VERSION

Top

version 0.001

  $Id: /my/cs/projects/Games-Crossword-Puzzle/trunk/lib/Games/Crossword/Puzzle/Cell.pm 31482 2007-04-27T13:49:10.009314Z rjbs  $

METHODS

Top

new

  my $cell = Games::Crossword::Puzzle::Cell->new(\%arg);

You probably don't mean to use this directly.

Valid arguments are:

  across - the across clue
  down   - the down clue
  number - the cell's number
  value  - the value that belongs in the cell
  guess  - the value that a user has put into the cell

In the future, this may return a singleton for The Black Cell.

across

down

These methods return the clues for the word beginning in this cell, if any.

number

This method returns the cell's number, if it is numbered.

value

This returns the value that should appear in the cell. It returns undef for black cells.

guess

This returns the value that has been filled into the cell by the user. It returns undef for black or empty cells.

COPYRIGHT & LICENSE

Top


Games-Crossword-Puzzle documentation  | view source Contained in the Games-Crossword-Puzzle distribution.