Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
53a7468e
Commit
53a7468e
authored
Jun 03, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: chess.js v0.10.3 API compat — use in_check/game_over/in_checkmate
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
27ffe18c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
engine.js
public/js/modules/chess/logic/engine.js
+7
-7
No files found.
public/js/modules/chess/logic/engine.js
View file @
53a7468e
...
@@ -21,13 +21,13 @@ export function moveUci(uci) {
...
@@ -21,13 +21,13 @@ export function moveUci(uci) {
export
function
fen
()
{
return
game
.
fen
();
}
export
function
fen
()
{
return
game
.
fen
();
}
export
function
turn
()
{
return
game
.
turn
();
}
export
function
turn
()
{
return
game
.
turn
();
}
export
function
isGameOver
()
{
return
game
.
isGameOver
();
}
export
function
isGameOver
()
{
return
game
.
game_over
?
game
.
game_over
()
:
game
.
isGameOver
();
}
export
function
isCheckmate
()
{
return
game
.
isCheckmate
();
}
export
function
isCheckmate
()
{
return
game
.
i
n_checkmate
?
game
.
in_checkmate
()
:
game
.
i
sCheckmate
();
}
export
function
isDraw
()
{
return
game
.
isDraw
();
}
export
function
isDraw
()
{
return
game
.
i
n_draw
?
game
.
in_draw
()
:
game
.
i
sDraw
();
}
export
function
isStalemate
()
{
return
game
.
isStalemate
();
}
export
function
isStalemate
()
{
return
game
.
i
n_stalemate
?
game
.
in_stalemate
()
:
game
.
i
sStalemate
();
}
export
function
isCheck
()
{
return
game
.
isCheck
();
}
export
function
isCheck
()
{
return
game
.
i
n_check
?
game
.
in_check
()
:
game
.
i
sCheck
();
}
export
function
isThreefoldRepetition
()
{
return
game
.
isThreefoldRepetition
();
}
export
function
isThreefoldRepetition
()
{
return
game
.
i
n_threefold_repetition
?
game
.
in_threefold_repetition
()
:
game
.
i
sThreefoldRepetition
();
}
export
function
isInsufficientMaterial
()
{
return
game
.
isInsufficientMaterial
();
}
export
function
isInsufficientMaterial
()
{
return
game
.
i
nsufficient_material
?
game
.
insufficient_material
()
:
game
.
i
sInsufficientMaterial
();
}
export
function
legalMoves
(
square
)
{
export
function
legalMoves
(
square
)
{
return
game
.
moves
({
square
,
verbose
:
true
});
return
game
.
moves
({
square
,
verbose
:
true
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment