Sha256: bb09d6781b9b3c133936b3129ba0fb0cb545e18da354b72251f9b406b2761adb
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
require File.join('games', '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.6.0 | lib/games/mastermind/computer_player_novice.rb |