lichess.org
Donate

Opening Explorer of Single Player

@lishadowapps Fantastic tool. Is there a way to filter for specific dates and/or time controls when creating a personal database (e.g. ≤6months ago, no bullet)?
#11

Filtering as explained in the ReadMe is using a Javascript function, which operates on the LichessGame class, which in turn is a wrapper around the JSON representation of a lichess game as provided by lichess games export API ( lichess.org/api#operation/apiGamesUser ).

For every game you have to return a boolean value using the reference to this LichessGame class as "lg".

You have to review the class source code, to know what fields you can access:

github.com/easychessanimations/easychess/blob/master/resources/client/js/lichess.js#L135

For example to filter bullet games, the condition would be:

lg.perf == "bullet"

to fitler for dates is even more intricate, because you have to use time stamps

this is the filter I actually use to get my recent atomic games:

(lg.orig.variant == "atomic") && (lg.orig.createdAt > 1579046400000)

if you go to www.epochconverter.com, you can see that

1579046400000 = 2020. January 15., Wednesday 0:00:00

This topic has been archived and can no longer be replied to.