-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rank_AI #51
rank_AI #51
Conversation
if ai_mode == AI_POLICY and cn.depth <= ai_settings["opening_moves"]: | ||
ai_mode = AI_WEIGHTED | ||
ai_thoughts += f"Switching to weighted strategy in the opening {int(ai_settings['opening_moves'])} moves. " | ||
ai_settings = {"pick_override": 0.9, "weaken_fac": 1, "lower_bound": 0.02} | ||
if ai_mode == AI_RANK: | ||
ai_settings = {"pick_override": (0.8*(1-(361-len_legal_policy_moves)/361.*.5)), "kyu": ai_settings["kyu"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You realize katrain can play anything from 1x2 to 52x52 right? so hardcoding 361 is not prefered
also the . in 361. is redundant.
@@ -594,3 +594,12 @@ msgstr "" | |||
"Le coup {move} a été annulé car il perdait {points_lost:.1f} points. Vous " | |||
"pouvez survoler le coup pour voir la réfutation. Veuillez jouer un nouveau " | |||
"coup." | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please just add english and run i18n.py, this adds a TODO tags to other languages.
@@ -553,3 +553,12 @@ msgstr "" | |||
"Picks moves biased below the `threshold` line and plays the best one. " | |||
"Increase `line_weight` to penalize moves near the center more. Stops " | |||
"strategy after the 'endgame' fraction of the board is filled." | |||
|
|||
msgid "ai:p:rank" | |||
msgstr "Rank 12k - 3d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can pick a better name, especially this might be confusing if we want to calibrate other ais like this
And thank you for your contribution 🚀 🥇 |
A new AI that can play a balanced game from 12k to 3d.
See the discussion at: #44