Sha256: a2126fe66dc67837f899b115a5f140f827ffc9aa9550192718fba2bda2669c56
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
require 'hand_evaluator' require "acpc_dealer/dealer_runner" module AcpcDealer VENDOR_DIRECTORY = File.expand_path('../../vendor', __FILE__) DEALER_DIRECTORY = File.join(VENDOR_DIRECTORY, 'project_acpc_server') GAME_DEFINITION_FILE_PATHS = { 2 => { limit: "#{DEALER_DIRECTORY}/holdem.limit.2p.reverse_blinds.game", nolimit: "#{DEALER_DIRECTORY}/holdem.nolimit.2p.reverse_blinds.game" }, 3 => { limit: "#{DEALER_DIRECTORY}/holdem.limit.3p.game", nolimit: "#{DEALER_DIRECTORY}/holdem.nolimit.3p.game" } } DEALER_PATH = "#{DEALER_DIRECTORY}/dealer" EXAMPLE_PLAYERS = { 2 => { limit: "#{DEALER_DIRECTORY}/example_player.limit.2p.sh", nolimit: "#{DEALER_DIRECTORY}/example_player.nolimit.2p.sh" }, 3 => { limit: "#{DEALER_DIRECTORY}/example_player.limit.3p.sh", nolimit: "#{DEALER_DIRECTORY}/example_player.nolimit.3p.sh" } } ConnectionInformation = Struct.new(:port_number, :host_name, :millisecond_response_timeout) do def initialize(port_number, host_name = 'localhost', millisecond_response_timeout = nil) super port_number, host_name, millisecond_response_timeout end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
acpc_dealer-1.0.4 | lib/acpc_dealer.rb |
acpc_dealer-1.0.3 | lib/acpc_dealer.rb |
acpc_dealer-1.0.2 | lib/acpc_dealer.rb |
acpc_dealer-1.0.1 | lib/acpc_dealer.rb |
acpc_dealer-1.0.0 | lib/acpc_dealer.rb |