Class: HumanPlayer
Overview
require ‘player’
Instance Attribute Summary
Attributes inherited from Player
Instance Method Summary collapse
Methods inherited from Player
Constructor Details
This class inherits a constructor from Player
Instance Method Details
#perform_move(game_state, move) ⇒ Object
4 5 6 7 8 |
# File 'lib/human_player.rb', line 4 def perform_move(game_state, move) # location = Game.ask_move(board, @token) # board.add_piece(@token, location) game_state.update(move) end |