Skip to content

Commit

Permalink
gochi feat. tararico
Browse files Browse the repository at this point in the history
  • Loading branch information
threetreeslight committed Jul 24, 2019
1 parent b4140c9 commit f45bbe2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Game

def main
result = roll
asset(result)
puts asset(result)
end

def roll
Expand Down Expand Up @@ -41,11 +41,23 @@ def assert(demes)
return "loose"
else
deme = demes.combination(2).select{|a,b| a == b}.flatten.first
if deme == 1
return "loose"
nokorideme = demes - deme

if nokorideme == 1
return "deme1"
elsif nokorideme == 2
return "deme2"
elsif nokorideme == 3
return "deme3"
elsif nokorideme == 4
return "deme4"
elsif nokorideme == 5
return "deme5"
else
if demes.uniq.size == 2
return "deme6"
end


end
end
end
Expand Down

0 comments on commit f45bbe2

Please sign in to comment.