Class: BettyNiñoO

Inherits:
BettyNiño show all
Defined in:
lib/pieces.rb,
lib/pieces.rb

Overview

Special case: O needs its own initialize

Instance Attribute Summary

Attributes inherited from BettyNiño

#center, #orientation, #shape

Instance Method Summary collapse

Methods inherited from BettyNiño

#display, #draw, #ghost, #move!, #niños, #slide!, #valid?

Constructor Details

#initialize(board) ⇒ BettyNiñoO

Returns a new instance of BettyNiñoO.



215
216
217
# File 'lib/pieces.rb', line 215

def initialize(board)
  super(board, :O)
end

Instance Method Details

#rotate!Object



194
195
196
# File 'lib/pieces.rb', line 194

def rotate!(*)
  # No-op for O piece
end