acpc_dealer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/acpc_dealer +11 -9
- data/lib/acpc_dealer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99789d5a03e5acbd540ef02990138777c06377ab
|
4
|
+
data.tar.gz: 2db48297e7b705c9978505bc3d6207d18e3ee08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8814b3620f48342049c6f1aa71f88e64f04d981def6341564ab5035cb99cc1dc74b6e64328946dbacc079e3f00f873a46e0cc5afdd63defb1c0f3054a8d66708
|
7
|
+
data.tar.gz: 0f3435a5493a3ee86172251340030c4b72436942757625a17c657b60083d88cc7f5114f8e757d1c225ca5275e5274cf784d31715a37117ef1bae53c6a6866d74
|
data/bin/acpc_dealer
CHANGED
@@ -66,14 +66,14 @@ class AcpcDealerCli < Clive
|
|
66
66
|
|
67
67
|
opt :l, :log_directory, 'Directory where logs will be placed', arg: '<log_directory>', as: String
|
68
68
|
|
69
|
-
opt :t_response, 'Maximum time per response', arg: '<
|
69
|
+
opt :t_response, 'Maximum time per response', arg: '<t_response>', as: Integer
|
70
70
|
|
71
|
-
opt :t_hand, 'Maximum player time per hand', arg: '<
|
71
|
+
opt :t_hand, 'Maximum player time per hand', arg: '<t_hand>', as: Integer
|
72
72
|
|
73
|
-
opt :t_per_hand, 'Maximum average player time for match', arg: '<
|
73
|
+
opt :t_per_hand, 'Maximum average player time for match', arg: '<t_per_hand>', as: Integer
|
74
74
|
|
75
75
|
desc 'Maximum time to wait for players to connect, defaults to no timeout'
|
76
|
-
opt :start_timeout, arg: '<
|
76
|
+
opt :start_timeout, arg: '<start_timeout>', as: Integer
|
77
77
|
|
78
78
|
action do
|
79
79
|
AcpcDealerCli.print_usage(:dealer) unless get(:game_def)
|
@@ -114,16 +114,18 @@ class AcpcDealerCli < Clive
|
|
114
114
|
}
|
115
115
|
|
116
116
|
# Append to produce behavior of previous dealer version
|
117
|
-
options =
|
118
|
-
options << "--t_response #{get(:
|
119
|
-
options << "--t_hand #{get(:
|
120
|
-
options << "--t_per_hand #{get(:
|
121
|
-
options << "--start_timeout #{get(:
|
117
|
+
options = '-a'
|
118
|
+
options << " --t_response #{get(:t_response)}" if get(:t_response)
|
119
|
+
options << " --t_hand #{get(:t_hand)}" if get(:t_hand)
|
120
|
+
options << " --t_per_hand #{get(:t_per_hand)}" if get(:t_per_hand)
|
121
|
+
options << " --start_timeout #{get(:start_timeout)}" if get(:start_timeout)
|
122
122
|
|
123
123
|
arguments[:options] = options
|
124
124
|
|
125
125
|
AcpcDealerCli.run(['compile']) unless File.exists? AcpcDealer::DEALER_PATH
|
126
126
|
|
127
|
+
puts "Starting dealer with the following arguments: #{arguments}"
|
128
|
+
|
127
129
|
dealer_result = AcpcDealer::DealerRunner.start(arguments, get(:log_directory))
|
128
130
|
puts "Dealer pid: #{dealer_result[:pid]}, ports: #{dealer_result[:port_numbers].join(' ')}, log directory: #{dealer_result[:log_directory]}"
|
129
131
|
end
|
data/lib/acpc_dealer/version.rb
CHANGED