Class: Mjai::Manue::MockGame
- Inherits:
-
Object
- Object
- Mjai::Manue::MockGame
- Defined in:
- lib/mjai/manue/player.rb
Instance Attribute Summary collapse
-
#all_pais ⇒ Object
readonly
Returns the value of attribute all_pais.
Instance Method Summary collapse
-
#initialize ⇒ MockGame
constructor
A new instance of MockGame.
Constructor Details
#initialize ⇒ MockGame
Returns a new instance of MockGame.
363 364 365 366 367 368 369 |
# File 'lib/mjai/manue/player.rb', line 363 def initialize() pais = (0...4).map() do |i| ["m", "p", "s"].map(){ |t| (1..9).map(){ |n| Pai.new(t, n, n == 5 && i == 0) } } + (1..7).map(){ |n| Pai.new("t", n) } end @all_pais = pais.flatten().sort() end |
Instance Attribute Details
#all_pais ⇒ Object (readonly)
Returns the value of attribute all_pais.
371 372 373 |
# File 'lib/mjai/manue/player.rb', line 371 def all_pais @all_pais end |