generated from seanpm2001/Git-Template_V8
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gems.rbx
25 lines (25 loc) · 797 Bytes
/
Gems.rbx
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
#!/usr/bin/env ruby
# Clash of Clans Gemfile, but its just a Ruby program
# Just a little demo for fun, it is most likely not be functional, as I don't have a way of testing Ruby programs right now, and it is a bit hacky.
# Integer myGems("9001")
Integer myGems(0)
prng = Random.new
prng.x = Random.new
prng.x.rand(1..6)
prng.o = Random.new
prng.o.rand("Mushroom","Bush","Stump","Tree","Big Tree","Stone","Gem Box")
if (o("Gembox"))
x(25)
puts("You found " + x + "gems in the " + o + ".")
break
else
# You found 6 gems in the mushroom
puts("You found " + x + "in the " + o + ".")
break
myGems == myGems + x
puts(myGems)
end
# File info
# File version: 1 (2023, Sunday, October 15th at 5:45 pm PST)
# Line count (including blank lines and compiler line): 26
# End of script