view staff/mackey/academy/damage.rb @ 3944:e45173af0101 default tip master

chenge game link
author KOMATSU Kotaro <c118089@roy.e.koeki-u.ac.jp>
date Mon, 20 Jan 2020 18:13:48 +0900
parents b56bf1659fd5
children
line wrap: on
line source

#!/usr/bin/ruby
# coding: utf-8
def damage()
  srand
  check = rand(4)
  if check == 0
    point = 100
    point
  elsif check == 1
    point = 126
    point
  elsif check == 2
    point = 87
    point
  elsif check == 3
    point == 199
    point
  end
end

yatex.org