class ToyRoboSimulator::Table
Table
is the environment in the program which decides the length and width of the table. The table will be used to validate the placement and movement of a Robo
.
The attributes x and y are the maximum values of length and width, while 0 is the minimum value.
Attributes
x[R]
y[R]
Public Class Methods
new(x, y)
click to toggle source
# File lib/toy_robo_simulator/table.rb, line 10 def initialize(x, y) @x = x @y = y end