Class: HumanPlayer

Inherits:
Player show all
Defined in:
lib/human_player.rb

Overview

require ‘player’

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

#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