Skip to content

Commit

Permalink
Bigorra : fix the soldier's movement and initial position
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoudebert committed May 20, 2024
1 parent b387e49 commit 51de0a5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/games/chessbase/cazaux/bigorra-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}],
},

Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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}],
Expand All @@ -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,
},
Expand All @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion src/games/chessbase/cazaux/bigorra-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/games/chessbase/res/rules/shogi/chu-shogi-rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2>Reference Guide</h2>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/bishop.png"/><b>Bishop</b> : as in chess.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/king.png"/><b>King</b> : as in chess.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/horse.png"/><b>Horse</b> : The Knight has the two forward-most moves of the Chess knight.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/shogi-horse.png"/></p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-horse.png"/></p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/lance.png"/><b>Lance</b> : The Lance moves as a Rook but only forward in the same file, never sideways or backward.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-lance.png"/></p>

Expand Down
2 changes: 1 addition & 1 deletion src/games/chessbase/res/rules/shogi/shogi-rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2>Pieces actions and properties</h2>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/bishop.png"/><b>Bishop</b> : as in chess.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/king.png"/><b>King</b> : as in chess.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/horse.png"/><b>Horse</b> : The Knight has the two forward-most moves of the Chess knight.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/shogi-horse.png"/></p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-horse.png"/></p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/lance.png"/><b>Lance</b> : The Lance moves as a Rook but only forward in the same file, never sideways or backward.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-lance.png"/></p>
<h2>Promotion</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/games/chessbase/res/rules/shogi/shogi-rules_fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2>Pièces</h2>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/bishop.png"/><b>Fou</b> : comme aux échecs classiques.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/king.png"/><b>Roi</b> : comme aux échecs classiques.</p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/horse.png"/><b>Cheval</b> : Le cheval se déplace comme le cavalier mais uniquement vers l’avant.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/shogi-horse.png"/></p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-horse.png"/></p>
<p><img style="max-width:100%;" src="{GAME}/res/rules/shogi/lance.png"/><b>Lance</b> : 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.</p>
<p><img class='piece-graph' src="{GAME}/res/rules/shogi/graphs/shogi-lance.png"/></p>
<h2>Promotion</h2>
Expand Down

0 comments on commit 51de0a5

Please sign in to comment.