Class: ConsoleShogi::GridPosition

Inherits:
Struct
  • Object
show all
Defined in:
lib/console_shogi/grid_position.rb

Instance Attribute Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



4
5
6
# File 'lib/console_shogi/grid_position.rb', line 4

def location
  @location
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



4
5
6
# File 'lib/console_shogi/grid_position.rb', line 4

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



4
5
6
# File 'lib/console_shogi/grid_position.rb', line 4

def y
  @y
end