projects
/
vchess.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
A few bug fixes
[vchess.git]
/
client
/
src
/
variants
/
Karouk.js
1
import
{
MakrukRules
}
from
"@/variants/Makruk"
;
2
3
export class
KaroukRules
extends
MakrukRules
{
4
5
getCurrentScore
() {
6
const
color
=
this
.
turn
;
7
if
(
this
.
underCheck
(
color
))
return
(
color
==
'w'
?
"0-1"
:
"1-0"
);
8
return super
.
getCurrentScore
();
9
}
10
11
};