Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: (OT) Brawling Javascript

by tilly (Archbishop)
on Oct 12, 2004 at 01:14 UTC ( [id://398346]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    var player_one = {
      dexterity: 0,
    ...
      level: 2,
      hp: 25
    };
    
  2. or download this
    function do_battle (player1, player2) {
      var attack_order = get_attack_order(player1, player2);
    ...
      hold_funeral(player1.hp < 1 ? player1 : player2);
      celebrate_victory(player1.hp < 1 ? player2 : player1);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-28 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found