@@ -186,15 +186,15 @@ namespace eval tacgame {
186186 pack $w .flimit $w .fbuttons -side top -fill x
187187
188188 ttk::radiobutton $w .flevel.diff_random.cb -text $::tr(RandomLevel) -variable ::tacgame::randomLevel -value 1 -width 15
189- ttk::scale $w .flevel.diff_random.lMin -orient horizontal -from 1200 -to 2200 -length 100 -variable ::tacgame::levelMin \
189+ ttk::scale $w .flevel.diff_random.lMin -orient horizontal -from 700 -to 2200 -length 100 -variable ::tacgame::levelMin \
190190 -command { ::utils::validate::roundScale ::tacgame::levelMin 50 }
191191 ttk::label $w .flevel.diff_random.labelMin -textvariable ::tacgame::levelMin
192- ttk::scale $w .flevel.diff_random.lMax -orient horizontal -from 1200 -to 2200 -length 100 -variable ::tacgame::levelMax \
192+ ttk::scale $w .flevel.diff_random.lMax -orient horizontal -from 700 -to 2200 -length 100 -variable ::tacgame::levelMax \
193193 -command { ::utils::validate::roundScale ::tacgame::levelMax 50 }
194194 ttk::label $w .flevel.diff_random.labelMax -textvariable ::tacgame::levelMax
195195 ttk::radiobutton $w .flevel.diff_fixed.cb -text $::tr(FixedLevel) -variable ::tacgame::randomLevel -value 0 -width 15
196196 ttk::label $w .flevel.diff_fixed.labelFixed -textvariable ::tacgame::levelFixed
197- ttk::scale $w .flevel.diff_fixed.scale -orient horizontal -from 1200 -to 2200 -length 200 \
197+ ttk::scale $w .flevel.diff_fixed.scale -orient horizontal -from 700 -to 2200 -length 200 \
198198 -variable ::tacgame::levelFixed -command { ::utils::validate::roundScale ::tacgame::levelFixed 50 }
199199
200200 grid $w .flevel.diff_fixed.cb -row 0 -column 0 -rowspan 2
@@ -378,9 +378,9 @@ namespace eval tacgame {
378378 set engineName [lindex $engineData 0]
379379 sc_game tags set -event " Tactical game"
380380 if { [::board::isFlipped .main.board] } {
381- sc_game tags set -white " $engineName - $level ELO"
381+ sc_game tags set -white " $engineName $level ELO"
382382 } else {
383- sc_game tags set -black " $engineName - $level ELO"
383+ sc_game tags set -black " $engineName $level ELO"
384384 }
385385 sc_game tags set -date [::utils::date::today]
386386 }
@@ -505,8 +505,10 @@ namespace eval tacgame {
505505
506506 # turn phalanx book, ponder and learning off, easy on
507507 if {$n == 1 && [string match -nocase " *phalanx*" $analysisName ]} {
508- # convert Elo = 1200 to level 100 up to Elo=2200 to level 0
509- set easylevel [expr int(100-(100*($level -1200)/(2200-1200)))]
508+ # convert Elo = 700 to level 100 up to Elo=2200 to level 0
509+ set easylevel [expr {100 - (100 * ($::tacgame::level - 700) / (2200 - 700))}]
510+ if {$easylevel < 0} {set easylevel 0}
511+ if {$easylevel > 100} {set easylevel 100}
510512 append analysisArgs " -b+ -p- -l- -e $easylevel "
511513 }
512514
0 commit comments