You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ export const TACTICIAN = '謀';
82
82
// starting positions (in FEN)
83
83
exportconstINTRO_POSITION=
84
84
'3img3/1s2n2s1/d1fwdwf1d/9/9/9/D1FWDWF1D/1S2N2S1/3GMI3 J2N2R2D1/j2n2r2d1 w 0 - 1';
85
-
exportconstBEGINNNER_POSITION=
85
+
exportconstBEGINNER_POSITION=
86
86
'3img3/1ra1n1as1/d1fwdwf1d/9/9/9/D1FWDWF1D/1SA1N1AR1/3GMI3 J2N2S1R1D1/j2n2s1r1d1 w 1 - 1';
87
87
exportconstINTERMEDIATE_POSITION=
88
88
'9/9/9/9/9/9/9/9/9 M1G1I1J2W2N3R2S2F2D4C1A2K1T1/m1g1i1j2w2n3r2s2f2d4c1a2k1t1 w 2 wb 1';
@@ -125,7 +125,7 @@ let gungi = new Gungi(
125
125
Returns a string containing an ASCII diagram of the current position with ANSI colors. Options is an optional parameter which may contain a 'english' flag to display the pieces in English symbols.
126
126
127
127
```ts
128
-
const gungi =newGungi(BEGINNNER_POSITION);
128
+
const gungi =newGungi(BEGINNER_POSITION);
129
129
130
130
// make some moves
131
131
gungi.move('槍(8-5-1)(7-5-2)付');
@@ -232,7 +232,7 @@ gungi.board();
232
232
Returns a list of pieces captured. Color is an optional parameter to filter pieces by player color
233
233
234
234
```ts
235
-
const gungi =newGungi(BEGINNNER_POSITION);
235
+
const gungi =newGungi(BEGINNER_POSITION);
236
236
gungi.move('新小(7-5-2)付');
237
237
gungi.move('兵(3-5-1)(4-5-1)');
238
238
gungi.move('新槍(7-4-2)付');
@@ -258,7 +258,7 @@ gungi.fen();
258
258
Returns the FEN string for the current position.
259
259
260
260
```ts
261
-
const gungi =newGungi(BEGINNNER_POSITION);
261
+
const gungi =newGungi(BEGINNER_POSITION);
262
262
263
263
// make some moves
264
264
gungi.move('槍(8-5-1)(7-5-2)付');
@@ -274,7 +274,7 @@ gungi.fen();
274
274
Returns the tower of pieces on the square. Returns `undefined` if the square is empty.
275
275
276
276
```ts
277
-
const gungi =newGungi(BEGINNNER_POSITION);
277
+
const gungi =newGungi(BEGINNER_POSITION);
278
278
279
279
gungi.move('砦(7-3-1)(7-4-2)付');
280
280
@@ -304,7 +304,7 @@ gungi.getDraftingRights('b');
304
304
Returns the top piece of the tower on the square. Returns `undefined` if the square is empty.
0 commit comments