Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Another perl battleship

by hippo (Bishop)
on Jan 09, 2019 at 09:14 UTC ( [id://1228245]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Ships - surely there is a better way to do this
    my %p1ships = (
    ...
        car  => { hp => 3, size => 5, ap => 2, loc => '', sym => '@', mc =
    +> 0 },
        subm => { hp => 1, size => 2, ap => 3, loc => '', sym => '~', mc =
    +> 0 },
        );
    
  2. or download this
    # Ships
    sub ships_init {
    ...
    
    my %p1ships = ships_init ();
    my %p2ships = ships_init ();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found