forked from jkimrusd/PokemonBattle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBattleArena.java
More file actions
29 lines (17 loc) · 799 Bytes
/
BattleArena.java
File metadata and controls
29 lines (17 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class BattleArena
{
// a nice comment which I wrote
public static void main(String[] args)
{
Pokemon squirtle = new Pokemon(120,8);
Pokemon psyduck = new Pokemon(200,5);
System.out.println("squirtle health is "+squirtle.getHealth());
System.out.println("psyduck health is "+psyduck.getHealth());
System.out.println("squirtle attacks psyduck");
psyduck.damaged( squirtle.getAttack() );
System.out.println("psyduck attacks squirtle");
squirtle.damaged( psyduck.getAttack() );
System.out.println("squirtle health is "+squirtle.getHealth());
System.out.println("psyduck health is "+psyduck.getHealth());
}
}