Sha256: 1717731f14b810f30346c333c78838fb7b729143ffe9b55ded9b2ea5e1a7b574

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

require_relative '../shared/player'

module MM
  class ComputerPlayerNovice < Shared::Player
    def make_move(game)
      game.computer_choosing_graphic
      random_move
    end

    def random_move
      guess = []
      4.times do
        guess.push((1..6).to_a.sample)
      end
      guess
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
games_bfox-0.4.0 lib/games/mastermind/computer_player_novice.rb