Sha256: f1eb8fac3158343a7ea327ec161d572465fec8507be1654d4f96c78008917ca0

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'methadone'
require 'acpc_dealer'
require 'acpc_poker_player_proxy'

class App
  include Methadone::Main
  include Methadone::CLILogging

  main do |port, seat, game_definition, player_names, number_of_hands, host|
    p AcpcPokerPlayerProxy::VERSION
    AcpcPokerPlayerProxy::PlayerProxy.new(
      AcpcDealer::ConnectionInformation.new(port, host),
      seat,
      game_definition,
      player_names,
      number_of_hands
    )
  end

  # Declare command-line interface
  description "Command line interface to play in ACPC Dealer hosted poker matches."

  arg :port
  arg :seat
  arg :game_definition
  arg :player_names, :optional
  arg :number_of_hands, :optional
  arg :host, :optional

  version AcpcPokerPlayerProxy::VERSION

  use_log_level_option

  go!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acpc_poker_player_proxy-1.0.1 bin/acpc_poker_player_proxy