Sha256: 3411dc05c3d9dc99d27b8598d131dccb89791fe528a9c484674085c479453040

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

require_relative '../shared/player'

module TTT
  class Player < Shared::Player
    attr_accessor :value

    def post_initialize(args = {})
      @value = args.fetch(:value, "X")
    end

    def make_move
      raise 'Called abstract method: make_move'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
games_bfox-0.4.0 lib/games/tictactoe/player.rb