Free online Chess game. Play Chess now in a clean interface. No registration, no ads, no plugin required. Play Chess with computer, friends or random opponents.
English
Play Games Tournament People Teams Forum
0 players
Sign in
Color

lichess.org

  1. Forum
  2. Lichess Feedback
  3. Checkmate is now unavoidable. Best was e3f3.

Mephostophilis Jul 10, 2012 8:03 PM #21

eh I think what he's doing is multiplying by 10, not sure tho, I'm really not good with these kinds of languages lol, how am I supposed to know what fold(-mate, mate) means if it's in one of those thousands of other source files

So I'm not sure what Stockfish is outputting exactly, but I'm sure like all other modern engines it determines the depth in Ply until checkmate is reached. so if mate_depth_mov_ans < mate_depth_mov_played then bitch in the comments. :D

Something like that.

Mephostophilis Jul 10, 2012 8:04 PM #22

ans > played*

thibault Jul 10, 2012 9:57 PM #23

I made the fixes we agreed on. They will be visible online by tomorrow, when I deploy. Thanks for your help guys.

someonesomewhere Jul 11, 2012 5:06 PM #24

Okay, looking better, but we still have one last problem:

---> The reason you shouldn't do 1,000 instead of 10,000 is because the value of a Queen is 900 centipawns, which is way too close to the value of a King (1,000, by what you proposed).

The problem is that, in the "advantage" graph, there are only 1,000 possibilities: 0.00 - 10.00 has only three zeroes.

This leads to graphs where the advantage is "10" for most of the game, even when there is no mate sequence.


I think the solution to this problem is to divide score.pawns on line 18 of AdvantageChart by 10 and mate.toFloat by 1000 instead of just by 100 on line twenty.

thibault Jul 11, 2012 5:51 PM #25

so basically you suggest multiplying by 10 the chart vertical scale. That would make most advantage variations invisible.

someonesomewhere Jul 11, 2012 6:32 PM #26

Hmm... you're correct on that. The two solutions that I can think of:

1) scale the graph logarithmically
2) only denote variations over ten in the dialog box, and just let the advantage appear to be ten in the chart

Mephostophilis Jul 11, 2012 8:03 PM #27

Or could use a different color I guess, rather than distorting the proportions. Like blue for advantage scores and red for mate scores so people can tell them apart.

thibault Jul 11, 2012 8:27 PM #28

yeah I though about that but it's not made possible by the chart library I use (google charts)

Log. chart would probably confuse most people. I'll go for someone's second suggestion.

someonesomewhere Jul 11, 2012 8:49 PM #29

so, to summarize:

- advantage score for mates is now 100 - (mate/100)
- scores over ten only appear in the dialog box, but appear as ten on the graph

Mephostophilis Jul 12, 2012 12:05 AM #30

Well I'm not sure if this was what you had in mind, but it appears that there *used* to be a color attribute, till it got deprecated from updated versions of Google Charts:
https://developers.google.com/chart/image/docs/chart_params

But fuck Google anyway I guess XD the log shoulds fine, too.
Damn library dependencies.