Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tcl/tools/sergame.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@ namespace eval sergame {
# Fixed depth
ttk::frame $w.ftime.depth
ttk::radiobutton $w.ftime.depth.button -text $::tr(FixedDepth) -value "depth" -variable ::sergame::timeMode -width 16
ttk::spinbox $w.ftime.depth.value -background white -width 3 -from 1 -to 20 -increment 1 -validate all -validatecommand { regexp {^[0-9]+$} %P }
ttk::spinbox $w.ftime.depth.value -background white -width 3 -from 1 -to 30 -increment 1 -validate all -validatecommand { regexp {^[0-9]+$} %P }
$w.ftime.depth.value set $::sergame::depth

pack $w.ftime.depth -side top -fill x
pack $w.ftime.depth.button -side left
pack $w.ftime.depth.value -side left

ttk::frame $w.ftime.nodes
ttk::radiobutton $w.ftime.nodes.button -text "$::tr(Nodes) (x1000)" -value "nodes" -variable ::sergame::timeMode -width 16
ttk::spinbox $w.ftime.nodes.value -background white -width 3 -from 5 -to 10000 -increment 5 -validate all -validatecommand { regexp {^[0-9]+$} %P }
$w.ftime.nodes.value set [ expr $::sergame::nodes /1000]
ttk::radiobutton $w.ftime.nodes.button -text "$::tr(Nodes)" -value "nodes" -variable ::sergame::timeMode -width 16
ttk::spinbox $w.ftime.nodes.value -background white -width 5 -from 1 -to 100000 -increment 5 -validate all -validatecommand { regexp {^[0-9]+$} %P }
$w.ftime.nodes.value set [ expr $::sergame::nodes]

pack $w.ftime.nodes -side top -fill x
pack $w.ftime.nodes.button -side left
Expand Down Expand Up @@ -244,7 +244,7 @@ namespace eval sergame {
set ::uci::uciInfo(winc3) [expr [.configSerGameWin.ftime.timebonus.whitespseconds get]*1000]
set ::uci::uciInfo(binc3) [expr [.configSerGameWin.ftime.timebonus.blackspseconds get]*1000]
set ::uci::uciInfo(fixeddepth3) [.configSerGameWin.ftime.depth.value get]
set ::uci::uciInfo(fixednodes3) [expr [.configSerGameWin.ftime.nodes.value get]*1000]
set ::uci::uciInfo(fixednodes3) [expr [.configSerGameWin.ftime.nodes.value get]]
set ::uci::uciInfo(movetime3) [expr [.configSerGameWin.ftime.movetime.value get]*1000]

destroy .configSerGameWin
Expand Down