The RCS revision control system and Ruby. Here is the code from this episode:
#!/usr/bin/env ruby
class Character
def initialize(name,role,lvl)
hp = rand(8)+1
@spells = ["cantrip", "chill touch", "detect undead"]
puts("You are #{name}, a level #{lvl} #{role}")
end #init
def listspells()
puts("#{@spells}")
end #list
def spellcast(n)
puts("You cast #{@spells[n]}")
dice = rand(20) + 1
if dice
view more