Skip to content

Commit 0f64aaf

Browse files
authored
Merge pull request #42 from Mind-Sports-Games/pla-835-togy-game-investigation
Pla 835 togy game investigation
2 parents dcf6fe2 + a1447f8 commit 0f64aaf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chessground",
3-
"version": "7.11.1-pstrat2.42",
3+
"version": "7.11.1-pstrat2.43",
44
"description": "playstrategy.org chess ui, forked from lichess.org",
55
"type": "commonjs",
66
"main": "chessground.js",

src/util.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,10 @@ export function togyzkumalakUpdatePiecesFromMove(
518518
//is tuzdik created
519519
const createdTuzdik =
520520
existingTuzdik.length !== 2 &&
521+
finalBoardArray[destBoardIndex] === 3 &&
522+
dest[1] !== orig[1] &&
521523
destBoardIndex !== boardWidth - 1 &&
522524
destBoardIndex !== boardWidth * 2 - 1 &&
523-
finalBoardArray[destBoardIndex] === 3 &&
524525
(existingTuzdik.length === 0 ||
525526
(existingTuzdik.length === 1 &&
526527
existingTuzdik[0] % boardWidth !== destBoardIndex % boardWidth &&

0 commit comments

Comments
 (0)