forked from jsblaisdell/powerrangers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
a.rb
73 lines (61 loc) · 1.38 KB
/
a.rb
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
require_relative "powerranger.rb"
puts "-----------"
person1 = Person.new("Person One")
person2 = Person.new("Person Two")
brian_w = PowerRanger.new("Brian","white")
brian_g = PowerRanger.new("Brian","green")
ninja1 = EvilNinja.new("ninja One")
ninja2 = EvilNinja.new("ninja Two")
puts "-----------"
p person1.run
p person2.scream
p brian_w.drink_coffee
p brian_g.run
p ninja1.scream
p ninja2.run
p person1.caffeine_level
p person2.caffeine_level
p brian_w.caffeine_level
p brian_g.caffeine_level
p ninja1.caffeine_level
p ninja2.caffeine_level
puts "9,9,12,9,9,9"
puts "-----------"
p person1.run
p person2.scream
p brian_w.punch(person1)
p brian_g.rest
p ninja1.punch(person2)
p ninja2.rest
p person1.caffeine_level
p person2.caffeine_level
p brian_w.caffeine_level
p brian_g.caffeine_level
p ninja1.caffeine_level
p ninja2.caffeine_level
puts "-"
p brian_w.strength
p brian_g.strength
p ninja1.strength
p ninja2.strength
puts "4,4,10,9,7,9-8,15,8,15"
puts "-----------"
p person1.drink_coffee
p person2.drink_coffee
p brian_w.megazord(ninja2)
p brian_g.punch(ninja1)
p ninja1.cause_mayhem(person1)
p ninja2.scream
p person1.caffeine_level
p person2.caffeine_level
p brian_w.caffeine_level
p brian_g.caffeine_level
p ninja1.caffeine_level
p ninja2.caffeine_level
puts "-"
p brian_w.strength
p brian_g.strength
p ninja1.strength
p ninja2.strength
puts "0,6,8,7,3,0-8,15,6,15"
puts "-----------"