phew
This commit is contained in:
1 parent
26bca7e348
commit
f94fb016ee
9 files changed
+32
-31
No files matched your search
@@ -38,6 +38,7 @@ but has since grown to include a wide range of features, including:
|
|||||||
### Play
|
### Play
|
||||||
* Select the players in the main menu, or under 'New Game'.
|
* Select the players in the main menu, or under 'New Game'.
|
||||||
* In a teaching game, KaTrain will analyze your moves and automatically undo those that are sufficiently bad.
|
* In a teaching game, KaTrain will analyze your moves and automatically undo those that are sufficiently bad.
|
||||||
|
* When playing against AI, note that the "Undo" button will undo both the AI's last move as well as yours.
|
||||||
|
|
||||||
#### Instant feedback while playing.
|
#### Instant feedback while playing.
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ for lang in locales:
|
|||||||
num_todo[lang] += 1
|
num_todo[lang] += 1
|
||||||
else:
|
else:
|
||||||
strings_to_langs[entry.msgid][lang] = entry.msgstr
|
strings_to_langs[entry.msgid][lang] = entry.msgstr
|
||||||
strings_to_keys[entry.msgid][lang] = set(re.findall("{.*?}",entry.msgstr))
|
strings_to_keys[entry.msgid][lang] = set(re.findall("{.*?}", entry.msgstr))
|
||||||
lang_to_strings[lang].add(entry.msgid)
|
lang_to_strings[lang].add(entry.msgid)
|
||||||
if num_todo[lang]:
|
if num_todo[lang]:
|
||||||
print(f"{lang} has {num_todo[lang]} TODO entries")
|
print(f"{lang} has {num_todo[lang]} TODO entries")
|
||||||
@@ -38,8 +38,8 @@ for lang in locales:
|
|||||||
if lang != DEFAULT_LANG:
|
if lang != DEFAULT_LANG:
|
||||||
for msgid in lang_to_strings[lang]:
|
for msgid in lang_to_strings[lang]:
|
||||||
if DEFAULT_LANG in strings_to_keys[msgid] and strings_to_keys[msgid][lang] != strings_to_keys[msgid][DEFAULT_LANG]:
|
if DEFAULT_LANG in strings_to_keys[msgid] and strings_to_keys[msgid][lang] != strings_to_keys[msgid][DEFAULT_LANG]:
|
||||||
print(f"{msgid} has inconstent formatting keys for {lang}: ",strings_to_keys[msgid][lang],'is different from default', strings_to_keys[msgid][DEFAULT_LANG])
|
print(f"{msgid} has inconstent formatting keys for {lang}: ", strings_to_keys[msgid][lang], "is different from default", strings_to_keys[msgid][DEFAULT_LANG])
|
||||||
errors=True
|
errors = True
|
||||||
|
|
||||||
for msgid in strings_to_langs.keys() - lang_to_strings[lang]:
|
for msgid in strings_to_langs.keys() - lang_to_strings[lang]:
|
||||||
if lang == DEFAULT_LANG:
|
if lang == DEFAULT_LANG:
|
||||||
|
|||||||
+2
-2
@@ -8,12 +8,12 @@
|
|||||||
"max_visits": 750,
|
"max_visits": 750,
|
||||||
"fast_visits": 50,
|
"fast_visits": 50,
|
||||||
"max_time": 3.0,
|
"max_time": 3.0,
|
||||||
"wide_root_noise": 0.01,
|
"wide_root_noise": 0.0,
|
||||||
"_hint_wide_root_noise": "A higher value here (typically 0.05-0.1)\nmakes the analysis explore more moves\nat the cost of some strength.",
|
"_hint_wide_root_noise": "A higher value here (typically 0.05-0.1)\nmakes the analysis explore more moves\nat the cost of some strength.",
|
||||||
"_enable_ownership": true
|
"_enable_ownership": true
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"sgf_load": "~/",
|
"sgf_load": "~/Downloads",
|
||||||
"sgf_save": "./sgfout",
|
"sgf_save": "./sgfout",
|
||||||
"anim_pv_time": 0.5,
|
"anim_pv_time": 0.5,
|
||||||
"debug_level": 1,
|
"debug_level": 1,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ AI_STRATEGIES_ENGINE = [AI_DEFAULT, AI_SCORELOSS, AI_JIGO]
|
|||||||
AI_STRATEGIES_PICK = [AI_PICK, AI_LOCAL, AI_TENUKI, AI_INFLUENCE, AI_TERRITORY]
|
AI_STRATEGIES_PICK = [AI_PICK, AI_LOCAL, AI_TENUKI, AI_INFLUENCE, AI_TERRITORY]
|
||||||
AI_STRATEGIES_POLICY = [AI_WEIGHTED, AI_POLICY] + AI_STRATEGIES_PICK
|
AI_STRATEGIES_POLICY = [AI_WEIGHTED, AI_POLICY] + AI_STRATEGIES_PICK
|
||||||
AI_STRATEGIES = AI_STRATEGIES_ENGINE + AI_STRATEGIES_POLICY
|
AI_STRATEGIES = AI_STRATEGIES_ENGINE + AI_STRATEGIES_POLICY
|
||||||
AI_STRATEGIES_RECOMMENDED_ORDER = [AI_DEFAULT, AI_SCORELOSS, AI_WEIGHTED, AI_PICK, AI_POLICY, AI_LOCAL, AI_TENUKI, AI_TERRITORY, AI_INFLUENCE, AI_JIGO]
|
AI_STRATEGIES_RECOMMENDED_ORDER = [AI_DEFAULT, AI_SCORELOSS, AI_POLICY, AI_WEIGHTED, AI_PICK, AI_LOCAL, AI_TENUKI, AI_TERRITORY, AI_INFLUENCE, AI_JIGO]
|
||||||
|
|
||||||
|
|
||||||
AI_STRENGTH = {
|
AI_STRENGTH = {
|
||||||
|
|||||||
+3
-7
@@ -16,6 +16,8 @@
|
|||||||
#:import BOX_BACKGROUND_COLOR katrain.gui.style.BOX_BACKGROUND_COLOR
|
#:import BOX_BACKGROUND_COLOR katrain.gui.style.BOX_BACKGROUND_COLOR
|
||||||
#:import TEXT_COLOR katrain.gui.style.TEXT_COLOR
|
#:import TEXT_COLOR katrain.gui.style.TEXT_COLOR
|
||||||
|
|
||||||
|
#:import BOX_BACKGROUND_COLOR katrain.gui.style.BOX_BACKGROUND_COLOR
|
||||||
|
#:set SPINNER_OPTION_COLOR [64 / 255, 85 / 255, 110 / 255, 1]
|
||||||
|
|
||||||
#:set LIGHTGREY [0.7,0.7,0.7,1]
|
#:set LIGHTGREY [0.7,0.7,0.7,1]
|
||||||
#:set BLACK [0.05,0.05,0.05,1]
|
#:set BLACK [0.05,0.05,0.05,1]
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
mipmap: True
|
mipmap: True
|
||||||
|
|
||||||
<I18NSpinnerOption@SpinnerOption>:
|
<I18NSpinnerOption@SpinnerOption>:
|
||||||
background_color: BACKGROUND_COLOR
|
background_color: SPINNER_OPTION_COLOR
|
||||||
background_normal: ''
|
background_normal: ''
|
||||||
lang_change_tracking: i18n._('') # for font
|
lang_change_tracking: i18n._('') # for font
|
||||||
color: WHITE
|
color: WHITE
|
||||||
@@ -337,12 +339,6 @@
|
|||||||
MDBoxLayout:
|
MDBoxLayout:
|
||||||
size_hint: 0.7,1
|
size_hint: 0.7,1
|
||||||
MDFloatLayout:
|
MDFloatLayout:
|
||||||
canvas.before:
|
|
||||||
Color:
|
|
||||||
rgba: GREEN
|
|
||||||
Line:
|
|
||||||
rectangle: (*self.pos,*self.size)
|
|
||||||
width: 1
|
|
||||||
size_hint: 0.4,1
|
size_hint: 0.4,1
|
||||||
TimerLabel:
|
TimerLabel:
|
||||||
color: BACKGROUND_COLOR
|
color: BACKGROUND_COLOR
|
||||||
|
|||||||
@@ -300,4 +300,6 @@ class LoadSGFPopup(BoxLayout):
|
|||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
app = MDApp.get_running_app()
|
app = MDApp.get_running_app()
|
||||||
self.filesel.favorites = [(os.path.abspath(app.gui.config("general/sgf_load")), "SGF Load Dir"), (os.path.abspath(app.gui.config("general/sgf_save")), "SGF Save Dir")]
|
self.filesel.favorites = [(os.path.abspath(app.gui.config("general/sgf_load")), "SGF Load Dir"), (os.path.abspath(app.gui.config("general/sgf_save")), "SGF Save Dir")]
|
||||||
|
self.filesel.path = os.path.abspath(os.path.expanduser(app.gui.config("general/sgf_load")))
|
||||||
|
print(os.path.abspath(os.path.expanduser(app.gui.config("general/sgf_load"))))
|
||||||
self.filesel.select_string = i18n._("Load File")
|
self.filesel.select_string = i18n._("Load File")
|
||||||
Binary file not shown.
@@ -552,7 +552,7 @@ msgstr ""
|
|||||||
"strategy after the 'endgame' fraction of the board is filled."
|
"strategy after the 'endgame' fraction of the board is filled."
|
||||||
|
|
||||||
msgid "ai:p:territory"
|
msgid "ai:p:territory"
|
||||||
msgstr "Respond Locally"
|
msgstr "Territorial Style"
|
||||||
|
|
||||||
msgid "aihelp:p:territory"
|
msgid "aihelp:p:territory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
+19
-17
@@ -390,24 +390,26 @@
|
|||||||
rewind: rewind
|
rewind: rewind
|
||||||
filesel: filesel
|
filesel: filesel
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
BoxLayout:
|
AnchorLayout:
|
||||||
orientation: 'horizontal'
|
|
||||||
size_hint: 1,1
|
size_hint: 1,1
|
||||||
DescriptionLabel:
|
BoxLayout:
|
||||||
text: i18n._("load sgf fast analysis")
|
size_hint: 0.5,1
|
||||||
size_hint: 0.45,1
|
orientation: 'horizontal'
|
||||||
halign: 'right'
|
DescriptionLabel:
|
||||||
LabelledCheckBox:
|
text: i18n._("load sgf fast analysis")
|
||||||
id: fast
|
size_hint: 0.45,1
|
||||||
size_hint: 0.05,1
|
halign: 'right'
|
||||||
DescriptionLabel:
|
LabelledCheckBox:
|
||||||
text: i18n._("load sgf rewind")
|
id: fast
|
||||||
halign: 'right'
|
size_hint: 0.05,1
|
||||||
size_hint: 0.45,1
|
DescriptionLabel:
|
||||||
LabelledCheckBox:
|
text: i18n._("load sgf rewind")
|
||||||
id: rewind
|
halign: 'right'
|
||||||
active: True
|
size_hint: 0.45,1
|
||||||
size_hint: 0.05,1
|
LabelledCheckBox:
|
||||||
|
id: rewind
|
||||||
|
active: True
|
||||||
|
size_hint: 0.05,1
|
||||||
I18NFileBrowser:
|
I18NFileBrowser:
|
||||||
id: filesel
|
id: filesel
|
||||||
multiselect: False
|
multiselect: False
|
||||||
|
|||||||
Reference in new issue
Block a user