tests: added AI performance tests to reproduce bad use cases with too much possible targets

This commit is contained in:
Oleg Agafonov 2025-02-05 13:12:22 +04:00
parent 416beb741c
commit 7d229e511c
2 changed files with 50 additions and 0 deletions

View file

@ -81,6 +81,7 @@ public class ComputerPlayer extends PlayerImpl {
// * 5 for good performance on average computer
// * use your's CPU cores for best performance
// TODO: add server config to control max AI threads (with CPU cores by default)
// TODO: rework AI implementation to use multiple sims calculation instead one by one
final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = 5;
private final transient Map<Mana, Card> unplayable = new TreeMap<>();