projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixes
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
087b4f5
..
eefd04d
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-409,8
+409,13
@@
export const ChessRules = class ChessRules
//////////////////
// INITIALIZATION
//////////////////
// INITIALIZATION
- // Fen string fully describes the game state
constructor(fen)
constructor(fen)
+ {
+ this.re_init(fen);
+ }
+
+ // Fen string fully describes the game state
+ re_init(fen)
{
const fenParsed = V.ParseFen(fen);
this.board = V.GetBoard(fenParsed.position);
{
const fenParsed = V.ParseFen(fen);
this.board = V.GetBoard(fenParsed.position);