Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Apr 13, 2019
1 parent db61ec4 commit 67e5538
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
**Fixed**

* Don't clear edit history on reloading file when file has been changed externally
* Fix engines making three consecutive passes in AI vs. AI games

## [Sabaki v0.43.1][v0.43.1] (2019-03-17)

Expand Down
2 changes: 1 addition & 1 deletion docs/api/sabaki.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ State properties can be accessed through the object `sabaki.state`. Generally, *
* `fullScreen` `<Boolean>`
* `representedFilename` `<String>` | `<Null>`
* `gameTrees` [`<GameTree[]>`](gametree.md)
* `treePosition` [`<TreePosition>`](treeposition.md)
* `treePosition` `<TreePosition>`
* `undoable` `<Boolean>`
* `selectedTool` `<String>` - One of `'stone_1'`, `'stone_'-1`, `'cross'`, `'triangle'`, `'square'`, `'circle'`, `'line'`, `'arrow'`, `'label'`, `'number'`
* `scoringMethod` `<String>` - One of `'territory'`, `'area'`
Expand Down
2 changes: 1 addition & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2618,7 +2618,7 @@ class App extends Component {
vertex = board.coord2vertex(responseContent)
}

let previousNode = tree.navigate(this.state.treePosition, -1, {})
let previousNode = tree.get(this.state.treePosition)
let previousPass = previousNode != null && ['W', 'B'].some(color =>
previousNode.data[color] != null
&& !board.hasVertex(sgf.parseVertex(previousNode.data[color][0]))
Expand Down

0 comments on commit 67e5538

Please sign in to comment.