class TicTacToeRu::Player

Constants

NAME

Attributes

name[R]
symbol[R]

Public Class Methods

new(data = {}) click to toggle source
# File lib/tic_tac_toe_ru/player.rb, line 7
  def initialize(data = {})
          @name = if data.has_key? :name
  data.fetch(:name)
else
  NAME.sample
end
          @symbol = data.fetch(:symbol)
  end