{% extends "OpenBench/base.html" %} {% block scripts %} // Take the settings from OpenBench/config.py for each engine // and generate a new dictionary in javascript that can be used var configurations = { {% for name, data in config.engines.items %} '{{name}}' : { {% for type, settings in data.testmodes.items %} '{{type}}' : { "threads" : "{{settings.threads}}", "hash" : "{{settings.hash}}", "timecontrol" : "{{settings.timecontrol}}" }, {% endfor %} }, {% endfor %} }; function configure(mode) { // Find the selected engine var selection = document.getElementById("enginename"); var engine = selection.options[selection.selectedIndex].value; // Parse out the needed configuration settings var threads = configurations[engine][mode]["threads"]; var hash = configurations[engine][mode]["hash"]; var timecontrol = configurations[engine][mode]["timecontrol"]; // Adjust all the fields to auto-fill the settings document.getElementById("devoptions").value = "Threads=" + threads + " Hash=" + hash; document.getElementById("baseoptions").value = "Threads=" + threads + " Hash=" + hash; document.getElementById("timecontrol").value = timecontrol; } document.addEventListener('DOMContentLoaded', function () { configure('stc'); }, false); {% endblock %} {% block content %}
{% csrf_token %}

Engine



Dev Settings




Base Settings




Game Settings



SPRT Settings





Test Settings





{% endblock %}