Support for adding books in OpenBench/config.py
This commit is contained in:
1 parent
54252d01fc
commit
4741230e4e
4 files changed
+416422
-11
No files matched your search
+416400
File diff suppressed because it is too large.
Load diff
+5
-1
@@ -15,6 +15,10 @@ FRAMEWORK_DEFAULTS = {
|
|||||||
'alpha' : 0.10,
|
'alpha' : 0.10,
|
||||||
'beta' : 0.10,
|
'beta' : 0.10,
|
||||||
'threads' : 1,
|
'threads' : 1,
|
||||||
'bookname' : '2moves_v1.pgn',
|
|
||||||
|
'books' : [
|
||||||
|
'2moves_v1.pgn',
|
||||||
|
'8moves_v3.pgn',
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,20 +33,15 @@ body {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content input {
|
#content input, #content select {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin: 2px 0px;
|
margin: 2px 0px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
#content input:read-only {
|
-webkit-box-sizing: border-box;
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#content input:-moz-read-only {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#content input[type=submit] {
|
#content input[type=submit] {
|
||||||
@@ -63,6 +58,14 @@ body {
|
|||||||
background-color: #4CAF50;
|
background-color: #4CAF50;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content input:read-only {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content input:-moz-read-only {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
#content #configuration {
|
#content #configuration {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
|||||||
@@ -32,7 +32,11 @@
|
|||||||
<input value="{{profile.repo}}" name="source">
|
<input value="{{profile.repo}}" name="source">
|
||||||
</br>
|
</br>
|
||||||
<label> Opening Book </label>
|
<label> Opening Book </label>
|
||||||
<input value="{{config.bookname}}" name="bookname">
|
<select name="bookname">
|
||||||
|
{% for book in config.books %}
|
||||||
|
<option value="{{book}}">{{book}}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
</br>
|
</br>
|
||||||
<label> Time Control </label>
|
<label> Time Control </label>
|
||||||
<input value="{{config.timecontrol}}" name="timecontrol">
|
<input value="{{config.timecontrol}}" name="timecontrol">
|
||||||
|
|||||||
Reference in new issue
Block a user