Improve AI difficulty scaling.

This commit is contained in:
Greyson Parrelli
2026-07-24 23:03:02 -04:00
parent 5a396e6efe
commit f3783b44bf
4 changed files with 188 additions and 1 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ import (
)
// botDifficulty maps the API's difficulty names to a skill level and a
// table name for the bot.
// table name for the bot. The levels are calibrated against a competent
// player (ai.competentLevel, ~0.60): easy loses ~95% of games to them, medium
// is an even match, and hard wins ~80% (see TestDiagWinRateCurve). Medium is
// pinned to the competent level itself; hard is the strongest bot the engine
// can field.
var botDifficulty = map[string]struct {
level float64
name string