Sha256: 88696f8878bf06c54a94d89743dbe88b20d92f9277e3af3149c282e6eefff467

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

module Mastermind
  class Player
    class Computer < Player
      def get_guess_for(game)
        @knuth = Knuth.new(game) unless @knuth && @knuth.game == game
        @knuth.prepare_guess
      end

      def get_code(length:)
        Game::Code.random(length)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mastermind-game-0.0.2 lib/mastermind/player/computer.rb