# =========================================== # =====DON’T modify the following code======= # =========================================== class Position attr_reader :row, :column def initialize(row, column) @row = row @column = column end…
# =========================================== # =====DON’T modify the following code======= # =========================================== class Position attr_reader :row, :column def initialize(row, column) @row = row @column = column end…
require_relative ‘controllers/game_controller’ # =========================================== # =====DON’T modify the following code======= # =========================================== Players = Struct.new(:game_board_1, :game_board_2, :attack_1, :attack_2) def parser(args) players = Players.new(nil, nil) raise…
require_relative ‘controllers/game_controller’ # =========================================== # =====DON’T modify the following code======= # =========================================== Players = Struct.new(:game_board_1, :game_board_2, :attack_1, :attack_2) def parser(args) players = Players.new(nil, nil) raise…
AAers/vagrant/work/received-2019/to-be-uploaded/2021-
AAers/vagrant/work/received-2019/to-be-uploaded/2021-
# =========================================== # =====DON’T modify the following code======= # =========================================== class Ship attr_reader :start_position, :orientation, :size def initialize(start_position, orientation, size) @start_position = start_position @orientation =…
# =========================================== # =====DON’T modify the following code======= # =========================================== class Ship attr_reader :start_position, :orientation, :size def initialize(start_position, orientation, size) @start_position = start_position @orientation =…
require_relative ‘../models/game_board’ require_relative ‘../models/ship’ require_relative ‘../models/position’ # return a populated GameBoard or nil # Return nil on any error (validation error or file opening error)…
require_relative ‘../models/game_board’ require_relative ‘../models/ship’ require_relative ‘../models/position’ # return a populated GameBoard or nil # Return nil on any error (validation error or file opening error)…