Skip to content

Commit

Permalink
fix TypeError by "^" key after deleting an initial stone
Browse files Browse the repository at this point in the history
1. load (;SZ[19]AB[aa][ba][ca])
2. "w" key + click on the center stone
3. push "^" key
  • Loading branch information
kaorahi committed Feb 14, 2024
1 parent 6b32da6 commit fd94dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function create_leelaz () {
const update_board_by_clear = (history, handicaps, init_len) => {
clear_leelaz_board(true)
// katago does not accept pass in set_position
init_len > 0 && history[init_len - 1].move === pass_command && init_len--
init_len > 0 && history[init_len - 1]?.move === pass_command && init_len--
let init = history.slice(0, init_len), rest = history.slice(init_len)
const set_handicap = () =>
is_supported('set_free_handicap') ?
Expand Down

0 comments on commit fd94dcb

Please sign in to comment.