Method: MailChess::Piece::Knight#initialize

Defined in:
lib/mail_chess/pieces/knight.rb

#initialize(db, piece_id, board = nil) ⇒ Knight

Calls the superclass.



11
12
13
14
15
# File 'lib/mail_chess/pieces/knight.rb', line 11

def initialize db, piece_id, board = nil
  super db, piece_id, board
  
  @html = @color == :white ? '♘' : '♞'
end