lib/robot_game.rb
# extract the placement params to initialize the robot
# input format is 'PLACE x,y,direction'
extract the placement params to initialize the robot
input format is 'PLACE x,y,direction'
extract the placement params to initialize the robot input format is ' PLACE x y direction '
def placement_params
    params = @instruction.split(' ').last
    x, y, direction = params.split(',')
    raise MISSING_PARAMS_ERROR if missing_parameters?(x, y, direction)
    [x.to_i, y.to_i, direction]
  end
def placement_params params = @instruction . split ( ' ' ) . last x , y , direction = params . split ( ',' ) raise MISSING_PARAMS_ERROR if missing_parameters? ( x , y , direction ) [ x . to_i , y . to_i , direction ] end
extract the placement params to initialize the robot
input format is 'PLACE x,y,direction'
extract the placement params to initialize the robot input format is ' PLACE x y direction '