Class: CardDeck::Card

Inherits:
Object
  • Object
show all
Defined in:
lib/card.rb

Overview

Main object used. Makes this a ‘Card’ game

Instance Method Summary collapse

Instance Method Details

#valueObject



3
4
5
6
7
8
9
10
11
# File 'lib/card.rb', line 3

def value
	case num
		when "Ace" then 1
		when 2..7 then num
		when "King" then 0.5
		when "Queen" then 0.5
		when "Jack" then 0.5
	end
end