-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatch
executable file
·82 lines (77 loc) · 1.76 KB
/
match
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env coffee
match = require './match.coffee'
defaults = match.defaults
argv = require 'yargs'
.options
v:
desc: 'Verbose mode'
alias: 'verbose'
type: 'boolean'
default: defaults.verbose
w:
alias: 'wld'
desc: 'Depth of win-loss-draw endgame search'
type: 'number'
default: defaults.wld
requiresArg: true
f:
alias: 'full'
desc: 'Depth of full endgame search'
type: 'number'
default: defaults.full
requiresArg: true
s:
alias: 'search'
desc: 'Number of UCT searches'
type: 'number'
default: defaults.search
requiresArg: true
r:
alias: 'ref'
desc: 'Reference weights.json'
type: 'string'
default: defaults.ref
requiresArg: true
W:
alias: 'weights'
desc: 'weights.json file'
type: 'string'
default: defaults.weights
requiresArg: true
o:
alias: 'openings'
desc: 'Openings file'
type: 'string'
default: defaults.openings
requiresArg: true
minimax:
desc: 'Match versus minimax'
type: 'boolean'
default: defaults.minimax
depth:
desc: 'Depth of minimax search'
type: 'number'
default: defaults.depth
requiresArg: true
leafs:
desc: 'Maximum number of leafs of minimax search'
type: 'number'
default: defaults.leafs
requiresArg: true
simple:
desc: 'Match versus simple_eval'
type: 'boolean'
default: defaults.simple
log:
desc: 'Log result to file'
type: 'string'
default: defaults.log
requiresArg: true
h:
alias: 'help'
.strict()
.version false
.argv
if argv._.length and not argv.log
argv.log = argv._[0]
match argv