struct ToyRobot::Table

Defined in:

toy_robot/table.cr

Constant Summary

DEFAULT_HEIGHT = 5
DEFAULT_WIDTH = 5

Constructors

Instance Method Summary

Constructor Detail

def self.new(width : Int32 = DEFAULT_WIDTH, height : Int32 = DEFAULT_HEIGHT) #

[View source]

Instance Method Detail

def fits?(x : Int32, y : Int32) : Bool #

[View source]
def fits?(robot : Robot) : Bool #

[View source]
def height : Int32 #

[View source]
def width : Int32 #

[View source]