require “minitest/autorun” require_relative “../../src/disc2.rb” class PublicTests < Minitest::Test def setup @hash = {1=>3, 2=>4, 5=>5, 6=>7, 8=>8, 9=>10} @arr = [1,2,3,4] @arr2 = [1,2,3,4] @grader…
require “minitest/autorun” require_relative “../../src/disc2.rb” class PublicTests < Minitest::Test def setup @hash = {1=>3, 2=>4, 5=>5, 6=>7, 8=>8, 9=>10} @arr = [1,2,3,4] @arr2 = [1,2,3,4] @grader…
# =========================================== # =====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 =…