Skip to content
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

Closed
wants to merge 2 commits into from
Closed

rank_AI #51

wants to merge 2 commits into from

Conversation

bale-go
Copy link
Contributor

@bale-go bale-go commented Jun 3, 2020

A new AI that can play a balanced game from 12k to 3d.
See the discussion at: #44

@sanderland sanderland changed the base branch from master to v1.2 June 3, 2020 16:42
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"] }
Copy link
Owner

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."

Copy link
Owner

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"
Copy link
Owner

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

@sanderland
Copy link
Owner

And thank you for your contribution 🚀 🥇

@sanderland sanderland closed this Jun 3, 2020
@bale-go bale-go deleted the master branch June 8, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants