Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Is this a good way to implement a Battleship game?

by nobull (Friar)
on Apr 01, 2006 at 12:20 UTC ( [id://540630]=note: print w/replies, xml ) Need Help??


in reply to Is this a good way to implement a Battleship game?

It has already been pointed out that using eq to test the equality of numbers is wasteful affected.

I should also add that using gt to compare numbers will not do what you probably intended because 3 gt 20 is true.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-18 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found