Help for this page

Select Code to Download


  1. or download this
    Item
    + new($name, $points)
    ...
    + new($map, %player_name_and_current_rooms)
    + quit
    + getMap, getPlayer : return @player
    
  2. or download this
    my %player_names_and_start_room_names = (
        bob => 'dark_hall',
    ...
    $map->initialize_rooms($room_filename);
    
    $game->new($map, %player_names...);
    
  3. or download this
    while (1) {
       print "You are in room", $player->getCurrentRoom->getName;
    ...
          } 
       }
    }