Sha256: 2bc0e65f66c62726f739325500226dd55987502b78934bb0e0b6ca3ccaf9272d

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

require 'robot/version'
require 'robot/point'
require 'robot/position'
require 'robot/directions'
require 'robot/commands'
require 'robot/command_proxy'
require 'robot/table'
require 'robot/game'

module Robot
  def self.run
    instructions
    Game.()
  end

  def self.instructions
    puts <<~HEREDOC
      Welcome to the Robot game
      Please enter one of the following commands:
      PLACE 0,0,NORTH (PLACE X,Y,DIRECTION)
      MOVE
      LEFT
      RIGHT
      REPORT

      invalid commands are ignored.
      You must start with a place command.
    HEREDOC
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
robot_rea-0.1.9 lib/robot.rb