Sha256: ced8aa8f8feac6dd3199da449f4ff218ec536fbbb6d73be5975f74b888d4bed2
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
module Shogi module Format module USI module Cell USI_VERTICAL_LABELS = { "1" => "a", "2" => "b", "3" => "c", "4" => "d", "5" => "e", "6" => "f", "7" => "g", "8" => "h", "9" => "i", } def place_usi "#{x}#{USI_VERTICAL_LABELS[y]}" end def piece_usi if @piece if @turn @piece.usi else @piece.usi.downcase end else 1 end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shogi-ruby-0.1.0 | lib/shogi/format/usi/cell.rb |
shogi-ruby-0.0.9 | lib/shogi/format/usi/cell.rb |
shogi-ruby-0.0.8 | lib/shogi/format/usi/cell.rb |