Class: EmptySquare

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/sapphire-chess/pieces/empty_square.rb

Instance Method Summary collapse

Instance Method Details

#hash_valueObject



14
15
16
# File 'lib/sapphire-chess/pieces/empty_square.rb', line 14

def hash_value
  '0'
end

#to_sObject



6
7
8
# File 'lib/sapphire-chess/pieces/empty_square.rb', line 6

def to_s
  '  '
end

#whiteObject



10
11
12
# File 'lib/sapphire-chess/pieces/empty_square.rb', line 10

def white
  '██'
end