Class: Players::Human

Inherits:
Player
  • Object
show all
Defined in:
lib/players/human.rb

Instance Attribute Summary

Attributes inherited from Player

#token

Instance Method Summary collapse

Methods inherited from Player

#initialize

Constructor Details

This class inherits a constructor from Player

Instance Method Details

#move(board) ⇒ Object



4
5
6
7
8
# File 'lib/players/human.rb', line 4

def move(board)
  puts "\nPlayer #{self.token} - Please input a #1-9.".blue
  input = gets.strip
  input
end