Sha256: 53e43d5c05b085c06d0cd4f55b7688015f4481817388eb381b3a10bfa1251e12

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

require 'tictactoe_tracypholmes/player'

module TictactoeTracypholmes
  module Players
    class Human < Player
      # move method

      attr_accessor :input

      def move(board)
        puts 'Please make a move by entering a number from 1 - 9.'
        gets.chomp
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tictactoe_tracypholmes-0.1.3 lib/tictactoe_tracypholmes/players/human.rb
tictactoe_tracypholmes-0.1.0 lib/tictactoe_tracypholmes/players/human.rb