Skip to content

Commit

Permalink
move "Tsumego frame" from Debug menu to "Tool > Experimental"
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed May 30, 2020
1 parent 3cbf2da commit c4cf321
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Check "Tool > Experimental > Reuse analysis" in the menu. This is expected to be
* Support ownerships of stones by facial expressions.
* Support `*.gib`, `*.ngf`, `*.ugf`, and `*.ugi` in addition to `*.sgf`. (You may need to do "npm install" again.)
* Omit marks for too minor suggestions on the board.
* Experimentally add "Tool > Experimental > Tsumego frame1&2" for solving life & death problems. (See "Tips" section in "Help" menu.)

### 0.4.0

Expand Down
11 changes: 11 additions & 0 deletions src/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,17 @@ <h3>Personal exercise book</h3>
Push "stop match" button to exit from match mode.
(Hit Tab or Z key after it if analysis are not shown.)

<h3>Tsumego frame for solving life &amp; death problems (experimental)</h3>

This feature is just an experiment. Do not expect much.

<ol>
<li>Put stones of a problem. Use right-click to put same color stones.</li>
<li>Select "Tool > Experimental > Tsumego frame1" to fill rest areas.</li>
<li>Start analysis (space key) and watch suggestions.</li>
</ol>
There is also "Tsumego frame2", that tries to make the board more even.

<!--
<h3>Backward scan in auto-analysis</h3>
Expand Down
11 changes: 11 additions & 0 deletions src/help_ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ <h3>個人練習帳</h3>

[Tool]メニューの[練習問題として保存(Store as exercize)]で現在の盤面を記憶し、[練習問題(Exercize)]で記憶した盤面をランダムに表示することができます(訳注:記憶は「!」キー、出題は「?」キーでもできます)。対局モードを抜けるには[stop match]ボタンを押してください(そのあともし解析結果が表示されなければTabキーかZキーを押してください)。

<h3>死活問題の解析:詰碁用フレーム (実験中)</h3>

この機能は実験中です。多くを期待しないでください。

<ol>
<li>問題図のとおりに石を置く。同じ色の石を続けて置くには右クリック。</li>
<li>"Tool > Experimental > Tsumego frame1"を選んで残りの領域を埋める。</li>
<li>スペースキーで解析を開始して推奨手を見る。</li>
</ol>
"Tsumego frame2"のほうは、盤面をより互角にしようと試みます。

<!--
<h3>Backward scan in auto-analysis</h3>
Expand Down
9 changes: 5 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ function menu_template(win) {
sep,
item('Replay analysis', undefined,
(this_item, win) => ask_auto_redo_sec(win), true),
sep,
item("Tsumego frame1", 'Shift+f', () => add_tsumego_frame(),
true, game.move_count > 0),
item("Tsumego frame2", 'CmdOrCtrl+Shift+f', () => add_tsumego_frame(true),
true, game.move_count > 0),
]),
])
const white_unloader_item =
Expand All @@ -616,10 +621,6 @@ function menu_template(win) {
store_toggler_menu_item('Debug log', debug_log_key, null, toggle_debug_log),
store_toggler_menu_item('Stone image', 'stone_image_p'),
store_toggler_menu_item('Board image', 'board_image_p'),
item("Tsumego frame", 'Shift+f', () => add_tsumego_frame(),
true, game.move_count > 0),
item("Tsumego frame'", 'CmdOrCtrl+Shift+f', () => add_tsumego_frame(true),
true, game.move_count > 0),
{role: 'toggleDevTools'},
])
const help_menu = menu('Help', [
Expand Down

0 comments on commit c4cf321

Please sign in to comment.