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,
|
||||
'beta' : 0.10,
|
||||
'threads' : 1,
|
||||
'bookname' : '2moves_v1.pgn',
|
||||
|
||||
'books' : [
|
||||
'2moves_v1.pgn',
|
||||
'8moves_v3.pgn',
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -33,20 +33,15 @@ body {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#content input {
|
||||
#content input, #content select {
|
||||
padding: 8px;
|
||||
margin: 2px 0px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
#content input:read-only {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#content input:-moz-read-only {
|
||||
font-weight: bold;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
}
|
||||
|
||||
#content input[type=submit] {
|
||||
@@ -63,6 +58,14 @@ body {
|
||||
background-color: #4CAF50;
|
||||
}
|
||||
|
||||
#content input:read-only {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#content input:-moz-read-only {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#content #configuration {
|
||||
float: left;
|
||||
margin-top: 20px;
|
||||
|
||||
@@ -32,7 +32,11 @@
|
||||
<input value="{{profile.repo}}" name="source">
|
||||
</br>
|
||||
<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>
|
||||
<label> Time Control </label>
|
||||
<input value="{{config.timecontrol}}" name="timecontrol">
|
||||
|
||||
Reference in new issue
Block a user