shogi.js 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.eslintrc.js +27 -0
  2. package/.nvmrc +1 -1
  3. package/.prettierignore +10 -0
  4. package/.prettierrc.json +5 -0
  5. package/.travis.yml +1 -1
  6. package/README.md +12 -13
  7. package/dist/shogi.js +2 -2
  8. package/dist/src/Kind.d.ts +19 -0
  9. package/dist/src/Piece.d.ts +6 -5
  10. package/dist/src/moveDefinitions.d.ts +3 -0
  11. package/dist/src/presets.d.ts +74 -0
  12. package/dist/src/shogi.d.ts +11 -11
  13. package/package.json +11 -7
  14. package/.github/workflows/gh-pages.yml +0 -33
  15. package/.idea/codeStyles/Project.xml +0 -21
  16. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  17. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  18. package/.idea/misc.xml +0 -6
  19. package/.idea/modules.xml +0 -8
  20. package/.idea/vcs.xml +0 -6
  21. package/dist/src/Constants.d.ts +0 -14
  22. package/docs/assets/css/main.css +0 -1
  23. package/docs/assets/images/icons.png +0 -0
  24. package/docs/assets/images/icons@2x.png +0 -0
  25. package/docs/assets/images/widgets.png +0 -0
  26. package/docs/assets/images/widgets@2x.png +0 -0
  27. package/docs/assets/js/main.js +0 -51
  28. package/docs/assets/js/search.js +0 -1
  29. package/docs/classes/piece.html +0 -563
  30. package/docs/classes/shogi.html +0 -1187
  31. package/docs/enums/color.html +0 -186
  32. package/docs/index.html +0 -204
  33. package/docs/interfaces/imove.html +0 -236
  34. package/docs/interfaces/imovedefinition.html +0 -186
  35. package/docs/interfaces/isettingtype.html +0 -200
  36. package/docs/modules.html +0 -149
  37. package/public/docs/assets/css/main.css +0 -1
  38. package/public/docs/assets/images/icons.png +0 -0
  39. package/public/docs/assets/images/icons@2x.png +0 -0
  40. package/public/docs/assets/images/widgets.png +0 -0
  41. package/public/docs/assets/images/widgets@2x.png +0 -0
  42. package/public/docs/assets/js/main.js +0 -51
  43. package/public/docs/assets/js/search.json +0 -1
  44. package/public/docs/classes/_piece_.piece.html +0 -576
  45. package/public/docs/classes/_shogi_.shogi.html +0 -1206
  46. package/public/docs/enums/_color_.color.html +0 -193
  47. package/public/docs/globals.html +0 -146
  48. package/public/docs/index.html +0 -227
  49. package/public/docs/interfaces/_imovedefinition_.imovedefinition.html +0 -194
  50. package/public/docs/interfaces/_shogi_.imove.html +0 -250
  51. package/public/docs/interfaces/_shogi_.isettingtype.html +0 -214
  52. package/public/docs/modules/_color_.html +0 -146
  53. package/public/docs/modules/_constants_.html +0 -1074
  54. package/public/docs/modules/_imovedefinition_.html +0 -146
  55. package/public/docs/modules/_piece_.html +0 -146
  56. package/public/docs/modules/_polyfills_.html +0 -112
  57. package/public/docs/modules/_serialization_.html +0 -262
  58. package/public/docs/modules/_shogi_.html +0 -159
@@ -1,1206 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>Shogi | shogi.js</title>
7
- <meta name="description" content="Documentation for shogi.js">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="../assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="../index.html" class="title">shogi.js</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-externals" checked />
42
- <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
43
- <input type="checkbox" id="tsd-filter-only-exported" />
44
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
45
- </div>
46
- </div>
47
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
48
- </div>
49
- </div>
50
- </div>
51
- </div>
52
- <div class="tsd-page-title">
53
- <div class="container">
54
- <ul class="tsd-breadcrumb">
55
- <li>
56
- <a href="../globals.html">Globals</a>
57
- </li>
58
- <li>
59
- <a href="../modules/_shogi_.html">&quot;shogi&quot;</a>
60
- </li>
61
- <li>
62
- <a href="_shogi_.shogi.html">Shogi</a>
63
- </li>
64
- </ul>
65
- <h1>Class Shogi</h1>
66
- </div>
67
- </div>
68
- </header>
69
- <div class="container container-main">
70
- <div class="row">
71
- <div class="col-8 col-content">
72
- <section class="tsd-panel tsd-comment">
73
- <div class="tsd-comment tsd-typography">
74
- <div class="lead">
75
- <p>将棋盤を管理するクラス</p>
76
- </div>
77
- </div>
78
- </section>
79
- <section class="tsd-panel tsd-hierarchy">
80
- <h3>Hierarchy</h3>
81
- <ul class="tsd-hierarchy">
82
- <li>
83
- <span class="target">Shogi</span>
84
- </li>
85
- </ul>
86
- </section>
87
- <section class="tsd-panel-group tsd-index-group">
88
- <h2>Index</h2>
89
- <section class="tsd-panel tsd-index-panel">
90
- <div class="tsd-index-content">
91
- <section class="tsd-index-section ">
92
- <h3>Constructors</h3>
93
- <ul class="tsd-index-list">
94
- <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_shogi_.shogi.html#constructor" class="tsd-kind-icon">constructor</a></li>
95
- </ul>
96
- </section>
97
- <section class="tsd-index-section ">
98
- <h3>Properties</h3>
99
- <ul class="tsd-index-list">
100
- <li class="tsd-kind-property tsd-parent-kind-class"><a href="_shogi_.shogi.html#board" class="tsd-kind-icon">board</a></li>
101
- <li class="tsd-kind-property tsd-parent-kind-class"><a href="_shogi_.shogi.html#flageditmode" class="tsd-kind-icon">flag<wbr>Edit<wbr>Mode</a></li>
102
- <li class="tsd-kind-property tsd-parent-kind-class"><a href="_shogi_.shogi.html#hands" class="tsd-kind-icon">hands</a></li>
103
- <li class="tsd-kind-property tsd-parent-kind-class"><a href="_shogi_.shogi.html#turn" class="tsd-kind-icon">turn</a></li>
104
- </ul>
105
- </section>
106
- <section class="tsd-index-section ">
107
- <h3>Methods</h3>
108
- <ul class="tsd-index-list">
109
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#capture" class="tsd-kind-icon">capture</a></li>
110
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#capturebycolor" class="tsd-kind-icon">capture<wbr>ByColor</a></li>
111
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#checkturn" class="tsd-kind-icon">check<wbr>Turn</a></li>
112
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#drop" class="tsd-kind-icon">drop</a></li>
113
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#editmode" class="tsd-kind-icon">edit<wbr>Mode</a></li>
114
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#flip" class="tsd-kind-icon">flip</a></li>
115
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#get" class="tsd-kind-icon">get</a></li>
116
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#getdropsby" class="tsd-kind-icon">get<wbr>Drops<wbr>By</a></li>
117
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#gethandssummary" class="tsd-kind-icon">get<wbr>Hands<wbr>Summary</a></li>
118
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#getmovesfrom" class="tsd-kind-icon">get<wbr>Moves<wbr>From</a></li>
119
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#getmovesto" class="tsd-kind-icon">get<wbr>Moves<wbr>To</a></li>
120
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#initialize" class="tsd-kind-icon">initialize</a></li>
121
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#initializefromsfenstring" class="tsd-kind-icon">initialize<wbr>FromSFENString</a></li>
122
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#move" class="tsd-kind-icon">move</a></li>
123
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#nextturn" class="tsd-kind-icon">next<wbr>Turn</a></li>
124
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#popfromhand" class="tsd-kind-icon">pop<wbr>From<wbr>Hand</a></li>
125
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#prevturn" class="tsd-kind-icon">prev<wbr>Turn</a></li>
126
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#pushtohand" class="tsd-kind-icon">push<wbr>ToHand</a></li>
127
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_shogi_.shogi.html#set" class="tsd-kind-icon">set</a></li>
128
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#setturn" class="tsd-kind-icon">set<wbr>Turn</a></li>
129
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#tocsastring" class="tsd-kind-icon">toCSAString</a></li>
130
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#tosfenstring" class="tsd-kind-icon">toSFENString</a></li>
131
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#undrop" class="tsd-kind-icon">undrop</a></li>
132
- <li class="tsd-kind-method tsd-parent-kind-class"><a href="_shogi_.shogi.html#unmove" class="tsd-kind-icon">unmove</a></li>
133
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="_shogi_.shogi.html#getillegalunpromotedrow" class="tsd-kind-icon">get<wbr>Illegal<wbr>Unpromoted<wbr>Row</a></li>
134
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="_shogi_.shogi.html#getrowtooppositeend" class="tsd-kind-icon">get<wbr>Row<wbr>ToOpposite<wbr>End</a></li>
135
- </ul>
136
- </section>
137
- </div>
138
- </section>
139
- </section>
140
- <section class="tsd-panel-group tsd-member-group ">
141
- <h2>Constructors</h2>
142
- <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
143
- <a name="constructor" class="tsd-anchor"></a>
144
- <h3>constructor</h3>
145
- <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
146
- <li class="tsd-signature tsd-kind-icon">new <wbr>Shogi<span class="tsd-signature-symbol">(</span>setting<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_shogi_.isettingtype.html" class="tsd-signature-type">ISettingType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_shogi_.shogi.html" class="tsd-signature-type">Shogi</a></li>
147
- </ul>
148
- <ul class="tsd-descriptions">
149
- <li class="tsd-description">
150
- <aside class="tsd-sources">
151
- <ul>
152
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L52">shogi.ts:52</a></li>
153
- </ul>
154
- </aside>
155
- <h4 class="tsd-parameters-title">Parameters</h4>
156
- <ul class="tsd-parameters">
157
- <li>
158
- <h5><span class="tsd-flag ts-flagOptional">Optional</span> setting: <a href="../interfaces/_shogi_.isettingtype.html" class="tsd-signature-type">ISettingType</a></h5>
159
- </li>
160
- </ul>
161
- <h4 class="tsd-returns-title">Returns <a href="_shogi_.shogi.html" class="tsd-signature-type">Shogi</a></h4>
162
- </li>
163
- </ul>
164
- </section>
165
- </section>
166
- <section class="tsd-panel-group tsd-member-group ">
167
- <h2>Properties</h2>
168
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
169
- <a name="board" class="tsd-anchor"></a>
170
- <h3>board</h3>
171
- <div class="tsd-signature tsd-kind-icon">board<span class="tsd-signature-symbol">:</span> <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></div>
172
- <aside class="tsd-sources">
173
- <ul>
174
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L40">shogi.ts:40</a></li>
175
- </ul>
176
- </aside>
177
- <div class="tsd-comment tsd-typography">
178
- <div class="lead">
179
- <p>盤面</p>
180
- </div>
181
- </div>
182
- </section>
183
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
184
- <a name="flageditmode" class="tsd-anchor"></a>
185
- <h3>flag<wbr>Edit<wbr>Mode</h3>
186
- <div class="tsd-signature tsd-kind-icon">flag<wbr>Edit<wbr>Mode<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
187
- <aside class="tsd-sources">
188
- <ul>
189
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L52">shogi.ts:52</a></li>
190
- </ul>
191
- </aside>
192
- <div class="tsd-comment tsd-typography">
193
- <div class="lead">
194
- <p>編集モードかどうか</p>
195
- </div>
196
- </div>
197
- </section>
198
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
199
- <a name="hands" class="tsd-anchor"></a>
200
- <h3>hands</h3>
201
- <div class="tsd-signature tsd-kind-icon">hands<span class="tsd-signature-symbol">:</span> <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span></div>
202
- <aside class="tsd-sources">
203
- <ul>
204
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L44">shogi.ts:44</a></li>
205
- </ul>
206
- </aside>
207
- <div class="tsd-comment tsd-typography">
208
- <div class="lead">
209
- <p>持ち駒</p>
210
- </div>
211
- </div>
212
- </section>
213
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
214
- <a name="turn" class="tsd-anchor"></a>
215
- <h3>turn</h3>
216
- <div class="tsd-signature tsd-kind-icon">turn<span class="tsd-signature-symbol">:</span> <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></div>
217
- <aside class="tsd-sources">
218
- <ul>
219
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L48">shogi.ts:48</a></li>
220
- </ul>
221
- </aside>
222
- <div class="tsd-comment tsd-typography">
223
- <div class="lead">
224
- <p>次の手番</p>
225
- </div>
226
- </div>
227
- </section>
228
- </section>
229
- <section class="tsd-panel-group tsd-member-group ">
230
- <h2>Methods</h2>
231
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
232
- <a name="capture" class="tsd-anchor"></a>
233
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> capture</h3>
234
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
235
- <li class="tsd-signature tsd-kind-icon">capture<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
236
- </ul>
237
- <ul class="tsd-descriptions">
238
- <li class="tsd-description">
239
- <aside class="tsd-sources">
240
- <ul>
241
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L395">shogi.ts:395</a></li>
242
- </ul>
243
- </aside>
244
- <div class="tsd-comment tsd-typography">
245
- <div class="lead">
246
- <p>(x, y)の駒を取って反対側の持ち駒に加える</p>
247
- </div>
248
- </div>
249
- <h4 class="tsd-parameters-title">Parameters</h4>
250
- <ul class="tsd-parameters">
251
- <li>
252
- <h5>x: <span class="tsd-signature-type">number</span></h5>
253
- </li>
254
- <li>
255
- <h5>y: <span class="tsd-signature-type">number</span></h5>
256
- </li>
257
- </ul>
258
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
259
- </li>
260
- </ul>
261
- </section>
262
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
263
- <a name="capturebycolor" class="tsd-anchor"></a>
264
- <h3>capture<wbr>ByColor</h3>
265
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
266
- <li class="tsd-signature tsd-kind-icon">capture<wbr>ByColor<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
267
- </ul>
268
- <ul class="tsd-descriptions">
269
- <li class="tsd-description">
270
- <aside class="tsd-sources">
271
- <ul>
272
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L337">shogi.ts:337</a></li>
273
- </ul>
274
- </aside>
275
- <div class="tsd-comment tsd-typography">
276
- <div class="lead">
277
- <p>(x, y)の駒を取ってcolorの持ち駒に加える</p>
278
- </div>
279
- </div>
280
- <h4 class="tsd-parameters-title">Parameters</h4>
281
- <ul class="tsd-parameters">
282
- <li>
283
- <h5>x: <span class="tsd-signature-type">number</span></h5>
284
- </li>
285
- <li>
286
- <h5>y: <span class="tsd-signature-type">number</span></h5>
287
- </li>
288
- <li>
289
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
290
- </li>
291
- </ul>
292
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
293
- </li>
294
- </ul>
295
- </section>
296
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
297
- <a name="checkturn" class="tsd-anchor"></a>
298
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> check<wbr>Turn</h3>
299
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
300
- <li class="tsd-signature tsd-kind-icon">check<wbr>Turn<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
301
- </ul>
302
- <ul class="tsd-descriptions">
303
- <li class="tsd-description">
304
- <aside class="tsd-sources">
305
- <ul>
306
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L449">shogi.ts:449</a></li>
307
- </ul>
308
- </aside>
309
- <div class="tsd-comment tsd-typography">
310
- <div class="lead">
311
- <p>colorの手番で問題ないか確認する.編集モードならok.</p>
312
- </div>
313
- </div>
314
- <h4 class="tsd-parameters-title">Parameters</h4>
315
- <ul class="tsd-parameters">
316
- <li>
317
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
318
- </li>
319
- </ul>
320
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
321
- </li>
322
- </ul>
323
- </section>
324
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
325
- <a name="drop" class="tsd-anchor"></a>
326
- <h3>drop</h3>
327
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
328
- <li class="tsd-signature tsd-kind-icon">drop<span class="tsd-signature-symbol">(</span>tox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, toy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, kind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, color<span class="tsd-signature-symbol">?: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
329
- </ul>
330
- <ul class="tsd-descriptions">
331
- <li class="tsd-description">
332
- <aside class="tsd-sources">
333
- <ul>
334
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L167">shogi.ts:167</a></li>
335
- </ul>
336
- </aside>
337
- <div class="tsd-comment tsd-typography">
338
- <div class="lead">
339
- <p>(tox, toy)へcolorの持ち駒のkindを打つ.</p>
340
- </div>
341
- </div>
342
- <h4 class="tsd-parameters-title">Parameters</h4>
343
- <ul class="tsd-parameters">
344
- <li>
345
- <h5>tox: <span class="tsd-signature-type">number</span></h5>
346
- </li>
347
- <li>
348
- <h5>toy: <span class="tsd-signature-type">number</span></h5>
349
- </li>
350
- <li>
351
- <h5>kind: <span class="tsd-signature-type">string</span></h5>
352
- </li>
353
- <li>
354
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol"> = this.turn</span></h5>
355
- </li>
356
- </ul>
357
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
358
- </li>
359
- </ul>
360
- </section>
361
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
362
- <a name="editmode" class="tsd-anchor"></a>
363
- <h3>edit<wbr>Mode</h3>
364
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
365
- <li class="tsd-signature tsd-kind-icon">edit<wbr>Mode<span class="tsd-signature-symbol">(</span>flag<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
366
- </ul>
367
- <ul class="tsd-descriptions">
368
- <li class="tsd-description">
369
- <aside class="tsd-sources">
370
- <ul>
371
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L96">shogi.ts:96</a></li>
372
- </ul>
373
- </aside>
374
- <div class="tsd-comment tsd-typography">
375
- <div class="lead">
376
- <p>編集モード切り替え</p>
377
- <ul>
378
- <li>通常モード:移動時に手番と移動可能かどうかチェックし,移動可能範囲は手番側のみ返す.</li>
379
- <li>編集モード:移動時に手番や移動可能かはチェックせず,移動可能範囲は両者とも返す.</li>
380
- </ul>
381
- </div>
382
- </div>
383
- <h4 class="tsd-parameters-title">Parameters</h4>
384
- <ul class="tsd-parameters">
385
- <li>
386
- <h5>flag: <span class="tsd-signature-type">boolean</span></h5>
387
- </li>
388
- </ul>
389
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
390
- </li>
391
- </ul>
392
- </section>
393
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
394
- <a name="flip" class="tsd-anchor"></a>
395
- <h3>flip</h3>
396
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
397
- <li class="tsd-signature tsd-kind-icon">flip<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
398
- </ul>
399
- <ul class="tsd-descriptions">
400
- <li class="tsd-description">
401
- <aside class="tsd-sources">
402
- <ul>
403
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L354">shogi.ts:354</a></li>
404
- </ul>
405
- </aside>
406
- <div class="tsd-comment tsd-typography">
407
- <div class="lead">
408
- <p>(x, y)の駒をフリップする(先手→先手成→後手→後手成→)
409
- 成功したらtrueを返す</p>
410
- </div>
411
- </div>
412
- <h4 class="tsd-parameters-title">Parameters</h4>
413
- <ul class="tsd-parameters">
414
- <li>
415
- <h5>x: <span class="tsd-signature-type">number</span></h5>
416
- </li>
417
- <li>
418
- <h5>y: <span class="tsd-signature-type">number</span></h5>
419
- </li>
420
- </ul>
421
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
422
- </li>
423
- </ul>
424
- </section>
425
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
426
- <a name="get" class="tsd-anchor"></a>
427
- <h3>get</h3>
428
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
429
- <li class="tsd-signature tsd-kind-icon">get<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></li>
430
- </ul>
431
- <ul class="tsd-descriptions">
432
- <li class="tsd-description">
433
- <aside class="tsd-sources">
434
- <ul>
435
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L309">shogi.ts:309</a></li>
436
- </ul>
437
- </aside>
438
- <div class="tsd-comment tsd-typography">
439
- <div class="lead">
440
- <p>(x, y)の駒を得る</p>
441
- </div>
442
- </div>
443
- <h4 class="tsd-parameters-title">Parameters</h4>
444
- <ul class="tsd-parameters">
445
- <li>
446
- <h5>x: <span class="tsd-signature-type">number</span></h5>
447
- </li>
448
- <li>
449
- <h5>y: <span class="tsd-signature-type">number</span></h5>
450
- </li>
451
- </ul>
452
- <h4 class="tsd-returns-title">Returns <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h4>
453
- </li>
454
- </ul>
455
- </section>
456
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
457
- <a name="getdropsby" class="tsd-anchor"></a>
458
- <h3>get<wbr>Drops<wbr>By</h3>
459
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
460
- <li class="tsd-signature tsd-kind-icon">get<wbr>Drops<wbr>By<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></li>
461
- </ul>
462
- <ul class="tsd-descriptions">
463
- <li class="tsd-description">
464
- <aside class="tsd-sources">
465
- <ul>
466
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L248">shogi.ts:248</a></li>
467
- </ul>
468
- </aside>
469
- <div class="tsd-comment tsd-typography">
470
- <div class="lead">
471
- <p>colorが打てる動きを全て得る</p>
472
- </div>
473
- </div>
474
- <h4 class="tsd-parameters-title">Parameters</h4>
475
- <ul class="tsd-parameters">
476
- <li>
477
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
478
- </li>
479
- </ul>
480
- <h4 class="tsd-returns-title">Returns <a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></h4>
481
- </li>
482
- </ul>
483
- </section>
484
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
485
- <a name="gethandssummary" class="tsd-anchor"></a>
486
- <h3>get<wbr>Hands<wbr>Summary</h3>
487
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
488
- <li class="tsd-signature tsd-kind-icon">get<wbr>Hands<wbr>Summary<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{}</span></li>
489
- </ul>
490
- <ul class="tsd-descriptions">
491
- <li class="tsd-description">
492
- <aside class="tsd-sources">
493
- <ul>
494
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L316">shogi.ts:316</a></li>
495
- </ul>
496
- </aside>
497
- <div class="tsd-comment tsd-typography">
498
- <div class="lead">
499
- <p>keyを種類,valueを枚数とするオブジェクトとして持ち駒の枚数一覧を返す.</p>
500
- </div>
501
- </div>
502
- <h4 class="tsd-parameters-title">Parameters</h4>
503
- <ul class="tsd-parameters">
504
- <li>
505
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
506
- </li>
507
- </ul>
508
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{}</span></h4>
509
- <ul class="tsd-parameters">
510
- <li class="tsd-parameter-index-signature">
511
- <h5><span class="tsd-signature-symbol">[</span>index: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5>
512
- </li>
513
- </ul>
514
- </li>
515
- </ul>
516
- </section>
517
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
518
- <a name="getmovesfrom" class="tsd-anchor"></a>
519
- <h3>get<wbr>Moves<wbr>From</h3>
520
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
521
- <li class="tsd-signature tsd-kind-icon">get<wbr>Moves<wbr>From<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></li>
522
- </ul>
523
- <ul class="tsd-descriptions">
524
- <li class="tsd-description">
525
- <aside class="tsd-sources">
526
- <ul>
527
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L200">shogi.ts:200</a></li>
528
- </ul>
529
- </aside>
530
- <div class="tsd-comment tsd-typography">
531
- <div class="lead">
532
- <p>(x, y)の駒の移動可能な動きをすべて得る
533
- 盤外,自分の駒取りは除外.二歩,王手放置などはチェックせず.</p>
534
- </div>
535
- </div>
536
- <h4 class="tsd-parameters-title">Parameters</h4>
537
- <ul class="tsd-parameters">
538
- <li>
539
- <h5>x: <span class="tsd-signature-type">number</span></h5>
540
- </li>
541
- <li>
542
- <h5>y: <span class="tsd-signature-type">number</span></h5>
543
- </li>
544
- </ul>
545
- <h4 class="tsd-returns-title">Returns <a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></h4>
546
- </li>
547
- </ul>
548
- </section>
549
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
550
- <a name="getmovesto" class="tsd-anchor"></a>
551
- <h3>get<wbr>Moves<wbr>To</h3>
552
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
553
- <li class="tsd-signature tsd-kind-icon">get<wbr>Moves<wbr>To<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, kind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, color<span class="tsd-signature-symbol">?: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></li>
554
- </ul>
555
- <ul class="tsd-descriptions">
556
- <li class="tsd-description">
557
- <aside class="tsd-sources">
558
- <ul>
559
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L288">shogi.ts:288</a></li>
560
- </ul>
561
- </aside>
562
- <div class="tsd-comment tsd-typography">
563
- <div class="lead">
564
- <p>(x, y)に行けるcolor側のkindの駒の動きを得る</p>
565
- </div>
566
- </div>
567
- <h4 class="tsd-parameters-title">Parameters</h4>
568
- <ul class="tsd-parameters">
569
- <li>
570
- <h5>x: <span class="tsd-signature-type">number</span></h5>
571
- </li>
572
- <li>
573
- <h5>y: <span class="tsd-signature-type">number</span></h5>
574
- </li>
575
- <li>
576
- <h5>kind: <span class="tsd-signature-type">string</span></h5>
577
- </li>
578
- <li>
579
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol"> = this.turn</span></h5>
580
- </li>
581
- </ul>
582
- <h4 class="tsd-returns-title">Returns <a href="../interfaces/_shogi_.imove.html" class="tsd-signature-type">IMove</a><span class="tsd-signature-symbol">[]</span></h4>
583
- </li>
584
- </ul>
585
- </section>
586
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
587
- <a name="initialize" class="tsd-anchor"></a>
588
- <h3>initialize</h3>
589
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
590
- <li class="tsd-signature tsd-kind-icon">initialize<span class="tsd-signature-symbol">(</span>setting<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_shogi_.isettingtype.html" class="tsd-signature-type">ISettingType</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
591
- </ul>
592
- <ul class="tsd-descriptions">
593
- <li class="tsd-description">
594
- <aside class="tsd-sources">
595
- <ul>
596
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L61">shogi.ts:61</a></li>
597
- </ul>
598
- </aside>
599
- <div class="tsd-comment tsd-typography">
600
- <div class="lead">
601
- <p>盤面を初期化する</p>
602
- </div>
603
- </div>
604
- <h4 class="tsd-parameters-title">Parameters</h4>
605
- <ul class="tsd-parameters">
606
- <li>
607
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> setting: <a href="../interfaces/_shogi_.isettingtype.html" class="tsd-signature-type">ISettingType</a><span class="tsd-signature-symbol"> = {preset: &quot;HIRATE&quot;}</span></h5>
608
- <div class="tsd-comment tsd-typography">
609
- <p>初期局面(なければ平手)</p>
610
- </div>
611
- </li>
612
- </ul>
613
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
614
- </li>
615
- </ul>
616
- </section>
617
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
618
- <a name="initializefromsfenstring" class="tsd-anchor"></a>
619
- <h3>initialize<wbr>FromSFENString</h3>
620
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
621
- <li class="tsd-signature tsd-kind-icon">initialize<wbr>FromSFENString<span class="tsd-signature-symbol">(</span>sfen<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
622
- </ul>
623
- <ul class="tsd-descriptions">
624
- <li class="tsd-description">
625
- <aside class="tsd-sources">
626
- <ul>
627
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L70">shogi.ts:70</a></li>
628
- </ul>
629
- </aside>
630
- <div class="tsd-comment tsd-typography">
631
- <div class="lead">
632
- <p>SFENによる盤面表現の文字列で盤面を初期化する</p>
633
- </div>
634
- </div>
635
- <h4 class="tsd-parameters-title">Parameters</h4>
636
- <ul class="tsd-parameters">
637
- <li>
638
- <h5>sfen: <span class="tsd-signature-type">string</span></h5>
639
- <div class="tsd-comment tsd-typography">
640
- </div>
641
- </li>
642
- </ul>
643
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
644
- </li>
645
- </ul>
646
- </section>
647
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
648
- <a name="move" class="tsd-anchor"></a>
649
- <h3>move</h3>
650
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
651
- <li class="tsd-signature tsd-kind-icon">move<span class="tsd-signature-symbol">(</span>fromx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, fromy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, tox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, toy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, promote<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
652
- </ul>
653
- <ul class="tsd-descriptions">
654
- <li class="tsd-description">
655
- <aside class="tsd-sources">
656
- <ul>
657
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L103">shogi.ts:103</a></li>
658
- </ul>
659
- </aside>
660
- <div class="tsd-comment tsd-typography">
661
- <div class="lead">
662
- <p>(fromx, fromy)から(tox, toy)へ移動し,promoteなら成り,駒を取っていれば持ち駒に加える..</p>
663
- </div>
664
- </div>
665
- <h4 class="tsd-parameters-title">Parameters</h4>
666
- <ul class="tsd-parameters">
667
- <li>
668
- <h5>fromx: <span class="tsd-signature-type">number</span></h5>
669
- </li>
670
- <li>
671
- <h5>fromy: <span class="tsd-signature-type">number</span></h5>
672
- </li>
673
- <li>
674
- <h5>tox: <span class="tsd-signature-type">number</span></h5>
675
- </li>
676
- <li>
677
- <h5>toy: <span class="tsd-signature-type">number</span></h5>
678
- </li>
679
- <li>
680
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> promote: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
681
- </li>
682
- </ul>
683
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
684
- </li>
685
- </ul>
686
- </section>
687
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
688
- <a name="nextturn" class="tsd-anchor"></a>
689
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> next<wbr>Turn</h3>
690
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
691
- <li class="tsd-signature tsd-kind-icon">next<wbr>Turn<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
692
- </ul>
693
- <ul class="tsd-descriptions">
694
- <li class="tsd-description">
695
- <aside class="tsd-sources">
696
- <ul>
697
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L429">shogi.ts:429</a></li>
698
- </ul>
699
- </aside>
700
- <div class="tsd-comment tsd-typography">
701
- <div class="lead">
702
- <p>次の手番に行く</p>
703
- </div>
704
- </div>
705
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
706
- </li>
707
- </ul>
708
- </section>
709
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
710
- <a name="popfromhand" class="tsd-anchor"></a>
711
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> pop<wbr>From<wbr>Hand</h3>
712
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
713
- <li class="tsd-signature tsd-kind-icon">pop<wbr>From<wbr>Hand<span class="tsd-signature-symbol">(</span>kind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></li>
714
- </ul>
715
- <ul class="tsd-descriptions">
716
- <li class="tsd-description">
717
- <aside class="tsd-sources">
718
- <ul>
719
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L413">shogi.ts:413</a></li>
720
- </ul>
721
- </aside>
722
- <div class="tsd-comment tsd-typography">
723
- <div class="lead">
724
- <p>color側のkindの駒を取って返す</p>
725
- </div>
726
- </div>
727
- <h4 class="tsd-parameters-title">Parameters</h4>
728
- <ul class="tsd-parameters">
729
- <li>
730
- <h5>kind: <span class="tsd-signature-type">string</span></h5>
731
- </li>
732
- <li>
733
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
734
- </li>
735
- </ul>
736
- <h4 class="tsd-returns-title">Returns <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h4>
737
- </li>
738
- </ul>
739
- </section>
740
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
741
- <a name="prevturn" class="tsd-anchor"></a>
742
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> prev<wbr>Turn</h3>
743
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
744
- <li class="tsd-signature tsd-kind-icon">prev<wbr>Turn<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
745
- </ul>
746
- <ul class="tsd-descriptions">
747
- <li class="tsd-description">
748
- <aside class="tsd-sources">
749
- <ul>
750
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L439">shogi.ts:439</a></li>
751
- </ul>
752
- </aside>
753
- <div class="tsd-comment tsd-typography">
754
- <div class="lead">
755
- <p>前の手番に行く</p>
756
- </div>
757
- </div>
758
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
759
- </li>
760
- </ul>
761
- </section>
762
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
763
- <a name="pushtohand" class="tsd-anchor"></a>
764
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> push<wbr>ToHand</h3>
765
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
766
- <li class="tsd-signature tsd-kind-icon">push<wbr>ToHand<span class="tsd-signature-symbol">(</span>piece<span class="tsd-signature-symbol">: </span><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
767
- </ul>
768
- <ul class="tsd-descriptions">
769
- <li class="tsd-description">
770
- <aside class="tsd-sources">
771
- <ul>
772
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L406">shogi.ts:406</a></li>
773
- </ul>
774
- </aside>
775
- <div class="tsd-comment tsd-typography">
776
- <div class="lead">
777
- <p>駒pieceを持ち駒に加える</p>
778
- </div>
779
- </div>
780
- <h4 class="tsd-parameters-title">Parameters</h4>
781
- <ul class="tsd-parameters">
782
- <li>
783
- <h5>piece: <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h5>
784
- </li>
785
- </ul>
786
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
787
- </li>
788
- </ul>
789
- </section>
790
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
791
- <a name="set" class="tsd-anchor"></a>
792
- <h3><span class="tsd-flag ts-flagPrivate">Private</span> set</h3>
793
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
794
- <li class="tsd-signature tsd-kind-icon">set<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, piece<span class="tsd-signature-symbol">: </span><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
795
- </ul>
796
- <ul class="tsd-descriptions">
797
- <li class="tsd-description">
798
- <aside class="tsd-sources">
799
- <ul>
800
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L388">shogi.ts:388</a></li>
801
- </ul>
802
- </aside>
803
- <div class="tsd-comment tsd-typography">
804
- <div class="lead">
805
- <p>(x, y)に駒を置く</p>
806
- </div>
807
- </div>
808
- <h4 class="tsd-parameters-title">Parameters</h4>
809
- <ul class="tsd-parameters">
810
- <li>
811
- <h5>x: <span class="tsd-signature-type">number</span></h5>
812
- </li>
813
- <li>
814
- <h5>y: <span class="tsd-signature-type">number</span></h5>
815
- </li>
816
- <li>
817
- <h5>piece: <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h5>
818
- </li>
819
- </ul>
820
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
821
- </li>
822
- </ul>
823
- </section>
824
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
825
- <a name="setturn" class="tsd-anchor"></a>
826
- <h3>set<wbr>Turn</h3>
827
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
828
- <li class="tsd-signature tsd-kind-icon">set<wbr>Turn<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
829
- </ul>
830
- <ul class="tsd-descriptions">
831
- <li class="tsd-description">
832
- <aside class="tsd-sources">
833
- <ul>
834
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L376">shogi.ts:376</a></li>
835
- </ul>
836
- </aside>
837
- <div class="tsd-comment tsd-typography">
838
- <div class="lead">
839
- <p>手番を設定する</p>
840
- </div>
841
- </div>
842
- <h4 class="tsd-parameters-title">Parameters</h4>
843
- <ul class="tsd-parameters">
844
- <li>
845
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
846
- </li>
847
- </ul>
848
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
849
- </li>
850
- </ul>
851
- </section>
852
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
853
- <a name="tocsastring" class="tsd-anchor"></a>
854
- <h3>toCSAString</h3>
855
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
856
- <li class="tsd-signature tsd-kind-icon">toCSAString<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
857
- </ul>
858
- <ul class="tsd-descriptions">
859
- <li class="tsd-description">
860
- <aside class="tsd-sources">
861
- <ul>
862
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L78">shogi.ts:78</a></li>
863
- </ul>
864
- </aside>
865
- <div class="tsd-comment tsd-typography">
866
- <div class="lead">
867
- <p>CSAによる盤面表現の文字列を返す</p>
868
- </div>
869
- </div>
870
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
871
- </li>
872
- </ul>
873
- </section>
874
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
875
- <a name="tosfenstring" class="tsd-anchor"></a>
876
- <h3>toSFENString</h3>
877
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
878
- <li class="tsd-signature tsd-kind-icon">toSFENString<span class="tsd-signature-symbol">(</span>moveCount<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
879
- </ul>
880
- <ul class="tsd-descriptions">
881
- <li class="tsd-description">
882
- <aside class="tsd-sources">
883
- <ul>
884
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L87">shogi.ts:87</a></li>
885
- </ul>
886
- </aside>
887
- <div class="tsd-comment tsd-typography">
888
- <div class="lead">
889
- <p>SFENによる盤面表現の文字列を返す</p>
890
- </div>
891
- </div>
892
- <h4 class="tsd-parameters-title">Parameters</h4>
893
- <ul class="tsd-parameters">
894
- <li>
895
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> moveCount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></h5>
896
- </li>
897
- </ul>
898
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
899
- </li>
900
- </ul>
901
- </section>
902
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
903
- <a name="undrop" class="tsd-anchor"></a>
904
- <h3>undrop</h3>
905
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
906
- <li class="tsd-signature tsd-kind-icon">undrop<span class="tsd-signature-symbol">(</span>tox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, toy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
907
- </ul>
908
- <ul class="tsd-descriptions">
909
- <li class="tsd-description">
910
- <aside class="tsd-sources">
911
- <ul>
912
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L185">shogi.ts:185</a></li>
913
- </ul>
914
- </aside>
915
- <div class="tsd-comment tsd-typography">
916
- <div class="lead">
917
- <p>dropの逆を行う,つまり(tox, toy)の駒を駒台に戻す.</p>
918
- </div>
919
- </div>
920
- <h4 class="tsd-parameters-title">Parameters</h4>
921
- <ul class="tsd-parameters">
922
- <li>
923
- <h5>tox: <span class="tsd-signature-type">number</span></h5>
924
- </li>
925
- <li>
926
- <h5>toy: <span class="tsd-signature-type">number</span></h5>
927
- </li>
928
- </ul>
929
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
930
- </li>
931
- </ul>
932
- </section>
933
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
934
- <a name="unmove" class="tsd-anchor"></a>
935
- <h3>unmove</h3>
936
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
937
- <li class="tsd-signature tsd-kind-icon">unmove<span class="tsd-signature-symbol">(</span>fromx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, fromy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, tox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, toy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, promote<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, capture<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
938
- </ul>
939
- <ul class="tsd-descriptions">
940
- <li class="tsd-description">
941
- <aside class="tsd-sources">
942
- <ul>
943
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L132">shogi.ts:132</a></li>
944
- </ul>
945
- </aside>
946
- <div class="tsd-comment tsd-typography">
947
- <div class="lead">
948
- <p>moveの逆を行う.つまり(tox, toy)から(fromx, fromy)へ移動し,駒を取っていたら戻し,promoteなら成りを戻す.</p>
949
- </div>
950
- </div>
951
- <h4 class="tsd-parameters-title">Parameters</h4>
952
- <ul class="tsd-parameters">
953
- <li>
954
- <h5>fromx: <span class="tsd-signature-type">number</span></h5>
955
- </li>
956
- <li>
957
- <h5>fromy: <span class="tsd-signature-type">number</span></h5>
958
- </li>
959
- <li>
960
- <h5>tox: <span class="tsd-signature-type">number</span></h5>
961
- </li>
962
- <li>
963
- <h5>toy: <span class="tsd-signature-type">number</span></h5>
964
- </li>
965
- <li>
966
- <h5><span class="tsd-flag ts-flagDefault value">Default value</span> promote: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
967
- </li>
968
- <li>
969
- <h5><span class="tsd-flag ts-flagOptional">Optional</span> capture: <span class="tsd-signature-type">string</span></h5>
970
- </li>
971
- </ul>
972
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
973
- </li>
974
- </ul>
975
- </section>
976
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
977
- <a name="getillegalunpromotedrow" class="tsd-anchor"></a>
978
- <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> get<wbr>Illegal<wbr>Unpromoted<wbr>Row</h3>
979
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
980
- <li class="tsd-signature tsd-kind-icon">get<wbr>Illegal<wbr>Unpromoted<wbr>Row<span class="tsd-signature-symbol">(</span>kind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">0</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">2</span></li>
981
- </ul>
982
- <ul class="tsd-descriptions">
983
- <li class="tsd-description">
984
- <aside class="tsd-sources">
985
- <ul>
986
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L18">shogi.ts:18</a></li>
987
- </ul>
988
- </aside>
989
- <h4 class="tsd-parameters-title">Parameters</h4>
990
- <ul class="tsd-parameters">
991
- <li>
992
- <h5>kind: <span class="tsd-signature-type">string</span></h5>
993
- </li>
994
- </ul>
995
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">0</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">2</span></h4>
996
- </li>
997
- </ul>
998
- </section>
999
- <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
1000
- <a name="getrowtooppositeend" class="tsd-anchor"></a>
1001
- <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> get<wbr>Row<wbr>ToOpposite<wbr>End</h3>
1002
- <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
1003
- <li class="tsd-signature tsd-kind-icon">get<wbr>Row<wbr>ToOpposite<wbr>End<span class="tsd-signature-symbol">(</span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, color<span class="tsd-signature-symbol">: </span><a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
1004
- </ul>
1005
- <ul class="tsd-descriptions">
1006
- <li class="tsd-description">
1007
- <aside class="tsd-sources">
1008
- <ul>
1009
- <li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/shogi.ts#L33">shogi.ts:33</a></li>
1010
- </ul>
1011
- </aside>
1012
- <div class="tsd-comment tsd-typography">
1013
- <div class="lead">
1014
- <p>手番の相手側から数えた段数</p>
1015
- </div>
1016
- </div>
1017
- <h4 class="tsd-parameters-title">Parameters</h4>
1018
- <ul class="tsd-parameters">
1019
- <li>
1020
- <h5>y: <span class="tsd-signature-type">number</span></h5>
1021
- </li>
1022
- <li>
1023
- <h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
1024
- </li>
1025
- </ul>
1026
- <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
1027
- </li>
1028
- </ul>
1029
- </section>
1030
- </section>
1031
- </div>
1032
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
1033
- <nav class="tsd-navigation primary">
1034
- <ul>
1035
- <li class="globals ">
1036
- <a href="../globals.html"><em>Globals</em></a>
1037
- </li>
1038
- <li class=" tsd-kind-module">
1039
- <a href="../modules/_color_.html">&quot;<wbr>Color&quot;</a>
1040
- </li>
1041
- <li class=" tsd-kind-module">
1042
- <a href="../modules/_constants_.html">&quot;<wbr>Constants&quot;</a>
1043
- </li>
1044
- <li class=" tsd-kind-module">
1045
- <a href="../modules/_imovedefinition_.html">&quot;IMove<wbr>Definition&quot;</a>
1046
- </li>
1047
- <li class=" tsd-kind-module">
1048
- <a href="../modules/_piece_.html">&quot;<wbr>Piece&quot;</a>
1049
- </li>
1050
- <li class=" tsd-kind-module">
1051
- <a href="../modules/_serialization_.html">&quot;<wbr>Serialization&quot;</a>
1052
- </li>
1053
- <li class="current tsd-kind-module">
1054
- <a href="../modules/_shogi_.html">&quot;shogi&quot;</a>
1055
- </li>
1056
- </ul>
1057
- </nav>
1058
- <nav class="tsd-navigation secondary menu-sticky">
1059
- <ul class="before-current">
1060
- </ul>
1061
- <ul class="current">
1062
- <li class="current tsd-kind-class tsd-parent-kind-module">
1063
- <a href="_shogi_.shogi.html" class="tsd-kind-icon">Shogi</a>
1064
- <ul>
1065
- <li class=" tsd-kind-constructor tsd-parent-kind-class">
1066
- <a href="_shogi_.shogi.html#constructor" class="tsd-kind-icon">constructor</a>
1067
- </li>
1068
- <li class=" tsd-kind-property tsd-parent-kind-class">
1069
- <a href="_shogi_.shogi.html#board" class="tsd-kind-icon">board</a>
1070
- </li>
1071
- <li class=" tsd-kind-property tsd-parent-kind-class">
1072
- <a href="_shogi_.shogi.html#flageditmode" class="tsd-kind-icon">flag<wbr>Edit<wbr>Mode</a>
1073
- </li>
1074
- <li class=" tsd-kind-property tsd-parent-kind-class">
1075
- <a href="_shogi_.shogi.html#hands" class="tsd-kind-icon">hands</a>
1076
- </li>
1077
- <li class=" tsd-kind-property tsd-parent-kind-class">
1078
- <a href="_shogi_.shogi.html#turn" class="tsd-kind-icon">turn</a>
1079
- </li>
1080
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1081
- <a href="_shogi_.shogi.html#capture" class="tsd-kind-icon">capture</a>
1082
- </li>
1083
- <li class=" tsd-kind-method tsd-parent-kind-class">
1084
- <a href="_shogi_.shogi.html#capturebycolor" class="tsd-kind-icon">capture<wbr>ByColor</a>
1085
- </li>
1086
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1087
- <a href="_shogi_.shogi.html#checkturn" class="tsd-kind-icon">check<wbr>Turn</a>
1088
- </li>
1089
- <li class=" tsd-kind-method tsd-parent-kind-class">
1090
- <a href="_shogi_.shogi.html#drop" class="tsd-kind-icon">drop</a>
1091
- </li>
1092
- <li class=" tsd-kind-method tsd-parent-kind-class">
1093
- <a href="_shogi_.shogi.html#editmode" class="tsd-kind-icon">edit<wbr>Mode</a>
1094
- </li>
1095
- <li class=" tsd-kind-method tsd-parent-kind-class">
1096
- <a href="_shogi_.shogi.html#flip" class="tsd-kind-icon">flip</a>
1097
- </li>
1098
- <li class=" tsd-kind-method tsd-parent-kind-class">
1099
- <a href="_shogi_.shogi.html#get" class="tsd-kind-icon">get</a>
1100
- </li>
1101
- <li class=" tsd-kind-method tsd-parent-kind-class">
1102
- <a href="_shogi_.shogi.html#getdropsby" class="tsd-kind-icon">get<wbr>Drops<wbr>By</a>
1103
- </li>
1104
- <li class=" tsd-kind-method tsd-parent-kind-class">
1105
- <a href="_shogi_.shogi.html#gethandssummary" class="tsd-kind-icon">get<wbr>Hands<wbr>Summary</a>
1106
- </li>
1107
- <li class=" tsd-kind-method tsd-parent-kind-class">
1108
- <a href="_shogi_.shogi.html#getmovesfrom" class="tsd-kind-icon">get<wbr>Moves<wbr>From</a>
1109
- </li>
1110
- <li class=" tsd-kind-method tsd-parent-kind-class">
1111
- <a href="_shogi_.shogi.html#getmovesto" class="tsd-kind-icon">get<wbr>Moves<wbr>To</a>
1112
- </li>
1113
- <li class=" tsd-kind-method tsd-parent-kind-class">
1114
- <a href="_shogi_.shogi.html#initialize" class="tsd-kind-icon">initialize</a>
1115
- </li>
1116
- <li class=" tsd-kind-method tsd-parent-kind-class">
1117
- <a href="_shogi_.shogi.html#initializefromsfenstring" class="tsd-kind-icon">initialize<wbr>FromSFENString</a>
1118
- </li>
1119
- <li class=" tsd-kind-method tsd-parent-kind-class">
1120
- <a href="_shogi_.shogi.html#move" class="tsd-kind-icon">move</a>
1121
- </li>
1122
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1123
- <a href="_shogi_.shogi.html#nextturn" class="tsd-kind-icon">next<wbr>Turn</a>
1124
- </li>
1125
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1126
- <a href="_shogi_.shogi.html#popfromhand" class="tsd-kind-icon">pop<wbr>From<wbr>Hand</a>
1127
- </li>
1128
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1129
- <a href="_shogi_.shogi.html#prevturn" class="tsd-kind-icon">prev<wbr>Turn</a>
1130
- </li>
1131
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1132
- <a href="_shogi_.shogi.html#pushtohand" class="tsd-kind-icon">push<wbr>ToHand</a>
1133
- </li>
1134
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
1135
- <a href="_shogi_.shogi.html#set" class="tsd-kind-icon">set</a>
1136
- </li>
1137
- <li class=" tsd-kind-method tsd-parent-kind-class">
1138
- <a href="_shogi_.shogi.html#setturn" class="tsd-kind-icon">set<wbr>Turn</a>
1139
- </li>
1140
- <li class=" tsd-kind-method tsd-parent-kind-class">
1141
- <a href="_shogi_.shogi.html#tocsastring" class="tsd-kind-icon">toCSAString</a>
1142
- </li>
1143
- <li class=" tsd-kind-method tsd-parent-kind-class">
1144
- <a href="_shogi_.shogi.html#tosfenstring" class="tsd-kind-icon">toSFENString</a>
1145
- </li>
1146
- <li class=" tsd-kind-method tsd-parent-kind-class">
1147
- <a href="_shogi_.shogi.html#undrop" class="tsd-kind-icon">undrop</a>
1148
- </li>
1149
- <li class=" tsd-kind-method tsd-parent-kind-class">
1150
- <a href="_shogi_.shogi.html#unmove" class="tsd-kind-icon">unmove</a>
1151
- </li>
1152
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
1153
- <a href="_shogi_.shogi.html#getillegalunpromotedrow" class="tsd-kind-icon">get<wbr>Illegal<wbr>Unpromoted<wbr>Row</a>
1154
- </li>
1155
- <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static">
1156
- <a href="_shogi_.shogi.html#getrowtooppositeend" class="tsd-kind-icon">get<wbr>Row<wbr>ToOpposite<wbr>End</a>
1157
- </li>
1158
- </ul>
1159
- </li>
1160
- </ul>
1161
- <ul class="after-current">
1162
- <li class=" tsd-kind-interface tsd-parent-kind-module">
1163
- <a href="../interfaces/_shogi_.imove.html" class="tsd-kind-icon">IMove</a>
1164
- </li>
1165
- <li class=" tsd-kind-interface tsd-parent-kind-module">
1166
- <a href="../interfaces/_shogi_.isettingtype.html" class="tsd-kind-icon">ISetting<wbr>Type</a>
1167
- </li>
1168
- </ul>
1169
- </nav>
1170
- </div>
1171
- </div>
1172
- </div>
1173
- <footer class="with-border-bottom">
1174
- <div class="container">
1175
- <h2>Legend</h2>
1176
- <div class="tsd-legend-group">
1177
- <ul class="tsd-legend">
1178
- <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
1179
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
1180
- <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
1181
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
1182
- </ul>
1183
- <ul class="tsd-legend">
1184
- <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
1185
- <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
1186
- <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
1187
- </ul>
1188
- <ul class="tsd-legend">
1189
- <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
1190
- </ul>
1191
- <ul class="tsd-legend">
1192
- <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
1193
- </ul>
1194
- <ul class="tsd-legend">
1195
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
1196
- </ul>
1197
- </div>
1198
- </div>
1199
- </footer>
1200
- <div class="container tsd-generator">
1201
- <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
1202
- </div>
1203
- <div class="overlay"></div>
1204
- <script src="../assets/js/main.js"></script>
1205
- </body>
1206
- </html>