From 51de0a57281a411ff5a2dc6949f8755f321d49d2 Mon Sep 17 00:00:00 2001 From: fhoudebert Date: Mon, 20 May 2024 16:04:36 +0200 Subject: [PATCH] Bigorra : fix the soldier's movement and initial position --- src/games/chessbase/cazaux/bigorra-model.js | 16 ++++++++-------- src/games/chessbase/cazaux/bigorra-view.js | 2 +- .../res/rules/shogi/chu-shogi-rules.html | 2 +- .../chessbase/res/rules/shogi/shogi-rules.html | 2 +- .../res/rules/shogi/shogi-rules_fr.html | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/games/chessbase/cazaux/bigorra-model.js b/src/games/chessbase/cazaux/bigorra-model.js index ae405411..75262366 100644 --- a/src/games/chessbase/cazaux/bigorra-model.js +++ b/src/games/chessbase/cazaux/bigorra-model.js @@ -174,7 +174,7 @@ aspect: 'fr-cobra', graph: this.cbSnakeGraph(geometry), value: 3.7, - abbrev: 'N', + abbrev: 'SN', initial: [{s:1,p:37},{s:1,p:42},{s:-1,p:213},{s:-1,p:218}], }, @@ -196,7 +196,7 @@ [-3,3],[0,3],[3,3],[-3,0],[3,0],[-3,-3], [0,-3],[-3,3]])), value : 3.2, - initial: [{s:1,p:48},{s:1,p:50},{s:1,p:52},{s:1,p:54},{s:1,p:56},{s:1,p:58},{s:1,p:60},{s:1,p:62}], + initial: [{s:1,p:48},{s:1,p:50},{s:1,p:52},{s:1,p:54},{s:1,p:57},{s:1,p:59},{s:1,p:61},{s:1,p:63}], }, 10: { name : 'troll-b', @@ -208,7 +208,7 @@ [-3,3],[0,3],[3,3],[-3,0],[3,0],[-3,-3], [0,-3],[-3,3]])), value : 3.2, - initial: [{s:-1,p:192},{s:-1,p:194},{s:-1,p:196},{s:-1,p:198},{s:-1,p:200},{s:-1,p:202},{s:-1,p:204},{s:-1,p:206}], + initial: [{s:-1,p:192},{s:-1,p:194},{s:-1,p:196},{s:-1,p:198},{s:-1,p:201},{s:-1,p:203},{s:-1,p:205},{s:-1,p:207}], }, 11: { name : 'princew', @@ -240,7 +240,7 @@ 14: { name : 'rhino', abbrev : 'U', - aspect : 'fr-rhino', + aspect : 'fr-rhino2', graph : this.cbRhinoGraph(geometry), value : 8.1, initial: [{s:1,p:10},{s:-1,p:250}], @@ -267,9 +267,9 @@ graph : this.cbMergeGraphs(geometry, this.cbInitialPawnGraph(geometry,1), this.cbShortRangeGraph(geometry,[ - [-1,0],[1,0]])), + [-1,0],[1,0]],0, this.cbConstants.FLAG_MOVE)), value : 0.9, - initial: [{s:1,p:49},{s:1,p:51},{s:1,p:53},{s:1,p:55},{s:1,p:57},{s:1,p:59},{s:1,p:61},{s:1,p:63}], + initial: [{s:1,p:49},{s:1,p:51},{s:1,p:53},{s:1,p:55},{s:1,p:56},{s:1,p:58},{s:1,p:60},{s:1,p:62}], epCatch : true, epTarget : true, }, @@ -280,9 +280,9 @@ graph : this.cbMergeGraphs(geometry, this.cbInitialPawnGraph(geometry,-1), this.cbShortRangeGraph(geometry,[ - [-1,0],[1,0]])), + [-1,0],[1,0]],0, this.cbConstants.FLAG_MOVE)), value : 0.9, - initial: [{s:-1,p:193},{s:-1,p:195},{s:-1,p:197},{s:-1,p:199},{s:-1,p:201},{s:-1,p:203},{s:-1,p:205},{s:-1,p:207}], + initial: [{s:-1,p:193},{s:-1,p:195},{s:-1,p:197},{s:-1,p:199},{s:-1,p:200},{s:-1,p:202},{s:-1,p:204},{s:-1,p:206}], epCatch : true, epTarget : true, }, diff --git a/src/games/chessbase/cazaux/bigorra-view.js b/src/games/chessbase/cazaux/bigorra-view.js index 5613ee6c..09d43bcc 100644 --- a/src/games/chessbase/cazaux/bigorra-view.js +++ b/src/games/chessbase/cazaux/bigorra-view.js @@ -210,7 +210,7 @@ var dx=Math.abs(geo.C(aMove.t)-geo.C(aMove.f)); var dy=Math.abs(geo.R(aMove.t)-geo.R(aMove.f)); // jump to move - if(("_N_E_W_K_L_M_T_F_G_J_Z_D_O_T_C_SQ_M_H_".indexOf("_"+aMove.a+"_")>=0) && (aGame.g.distGraph[aMove.f][aMove.t]>1)) + if(("_N_E_W_K_L_M_T_F_G_J_Z_D_O_T_C_SN_SQ_M_H_".indexOf("_"+aMove.a+"_")>=0) && (aGame.g.distGraph[aMove.f][aMove.t]>1)) return Math.max(zFrom,zTo)+2000; else if(("_A_X_".indexOf("_"+aMove.a+"_")>=0) && dx!=dy && dx!=0 && dy!=0) return Math.max(zFrom,zTo)+2000; diff --git a/src/games/chessbase/res/rules/shogi/chu-shogi-rules.html b/src/games/chessbase/res/rules/shogi/chu-shogi-rules.html index bcdb59f5..d9256d3b 100644 --- a/src/games/chessbase/res/rules/shogi/chu-shogi-rules.html +++ b/src/games/chessbase/res/rules/shogi/chu-shogi-rules.html @@ -46,7 +46,7 @@

Reference Guide

Bishop : as in chess.

King : as in chess.

Horse : The Knight has the two forward-most moves of the Chess knight.

-

+

Lance : The Lance moves as a Rook but only forward in the same file, never sideways or backward.

diff --git a/src/games/chessbase/res/rules/shogi/shogi-rules.html b/src/games/chessbase/res/rules/shogi/shogi-rules.html index 3ae9ea87..f384e2b0 100644 --- a/src/games/chessbase/res/rules/shogi/shogi-rules.html +++ b/src/games/chessbase/res/rules/shogi/shogi-rules.html @@ -46,7 +46,7 @@

Pieces actions and properties

Bishop : as in chess.

King : as in chess.

Horse : The Knight has the two forward-most moves of the Chess knight.

-

+

Lance : The Lance moves as a Rook but only forward in the same file, never sideways or backward.

Promotion

diff --git a/src/games/chessbase/res/rules/shogi/shogi-rules_fr.html b/src/games/chessbase/res/rules/shogi/shogi-rules_fr.html index 61078933..28b145c3 100644 --- a/src/games/chessbase/res/rules/shogi/shogi-rules_fr.html +++ b/src/games/chessbase/res/rules/shogi/shogi-rules_fr.html @@ -48,7 +48,7 @@

Pièces

Fou : comme aux échecs classiques.

Roi : comme aux échecs classiques.

Cheval : Le cheval se déplace comme le cavalier mais uniquement vers l’avant.

-

+

Lance : La Lance se déplace comme une Tour mais seulement vers l'avant dans la même colonne, jamais latéralement ou vers l'arrière.

Promotion