mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
87e1d4795b
But we don't need to sort them all the time, and in general we don't even need to keep all the rounds. This commit greatly improves the search performance by filtering the results in 3 different ways, depending on the context: - A limit to the number of results can be given (useful for the training mode). The kept results are the best ones, not the first ones found by the search. - When only the best round is needed (when the AI is playing with level 100, or when preparing the rack for an explosive game), we don't need to keep rounds with a lower score - When the AI has a level lower than 100, it is still possible to skip many rounds The search limit in training mode is configurable (defaulting to 100) and can be deactivated.
13 lines
87 B
Text
13 lines
87 B
Text
s i training.search-limit 1000
|
|
e
|
|
t QpiNZ?s
|
|
a t
|
|
r
|
|
a r 1000
|
|
j QuIZ H6
|
|
t E?
|
|
r
|
|
a r 50
|
|
q
|
|
q
|
|
|