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.
- package/.eslintrc.js +27 -0
- package/.nvmrc +1 -1
- package/.prettierignore +10 -0
- package/.prettierrc.json +5 -0
- package/.travis.yml +1 -1
- package/README.md +12 -13
- package/dist/shogi.js +2 -2
- package/dist/src/Kind.d.ts +19 -0
- package/dist/src/Piece.d.ts +6 -5
- package/dist/src/moveDefinitions.d.ts +3 -0
- package/dist/src/presets.d.ts +74 -0
- package/dist/src/shogi.d.ts +11 -11
- package/package.json +11 -7
- package/.github/workflows/gh-pages.yml +0 -33
- package/.idea/codeStyles/Project.xml +0 -21
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/dist/src/Constants.d.ts +0 -14
- package/docs/assets/css/main.css +0 -1
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -51
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/piece.html +0 -563
- package/docs/classes/shogi.html +0 -1187
- package/docs/enums/color.html +0 -186
- package/docs/index.html +0 -204
- package/docs/interfaces/imove.html +0 -236
- package/docs/interfaces/imovedefinition.html +0 -186
- package/docs/interfaces/isettingtype.html +0 -200
- package/docs/modules.html +0 -149
- package/public/docs/assets/css/main.css +0 -1
- package/public/docs/assets/images/icons.png +0 -0
- package/public/docs/assets/images/icons@2x.png +0 -0
- package/public/docs/assets/images/widgets.png +0 -0
- package/public/docs/assets/images/widgets@2x.png +0 -0
- package/public/docs/assets/js/main.js +0 -51
- package/public/docs/assets/js/search.json +0 -1
- package/public/docs/classes/_piece_.piece.html +0 -576
- package/public/docs/classes/_shogi_.shogi.html +0 -1206
- package/public/docs/enums/_color_.color.html +0 -193
- package/public/docs/globals.html +0 -146
- package/public/docs/index.html +0 -227
- package/public/docs/interfaces/_imovedefinition_.imovedefinition.html +0 -194
- package/public/docs/interfaces/_shogi_.imove.html +0 -250
- package/public/docs/interfaces/_shogi_.isettingtype.html +0 -214
- package/public/docs/modules/_color_.html +0 -146
- package/public/docs/modules/_constants_.html +0 -1074
- package/public/docs/modules/_imovedefinition_.html +0 -146
- package/public/docs/modules/_piece_.html +0 -146
- package/public/docs/modules/_polyfills_.html +0 -112
- package/public/docs/modules/_serialization_.html +0 -262
- package/public/docs/modules/_shogi_.html +0 -159
|
@@ -1,576 +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>Piece | 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/_piece_.html">"Piece"</a>
|
|
60
|
-
</li>
|
|
61
|
-
<li>
|
|
62
|
-
<a href="_piece_.piece.html">Piece</a>
|
|
63
|
-
</li>
|
|
64
|
-
</ul>
|
|
65
|
-
<h1>Class Piece</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">Piece</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="_piece_.piece.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="_piece_.piece.html#color" class="tsd-kind-icon">color</a></li>
|
|
101
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_piece_.piece.html#kind" class="tsd-kind-icon">kind</a></li>
|
|
102
|
-
</ul>
|
|
103
|
-
</section>
|
|
104
|
-
<section class="tsd-index-section ">
|
|
105
|
-
<h3>Methods</h3>
|
|
106
|
-
<ul class="tsd-index-list">
|
|
107
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_piece_.piece.html#inverse" class="tsd-kind-icon">inverse</a></li>
|
|
108
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_piece_.piece.html#promote" class="tsd-kind-icon">promote</a></li>
|
|
109
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_piece_.piece.html#tocsastring" class="tsd-kind-icon">toCSAString</a></li>
|
|
110
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_piece_.piece.html#tosfenstring" class="tsd-kind-icon">toSFENString</a></li>
|
|
111
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_piece_.piece.html#unpromote" class="tsd-kind-icon">unpromote</a></li>
|
|
112
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#canpromote" class="tsd-kind-icon">can<wbr>Promote</a></li>
|
|
113
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#fromsfenstring" class="tsd-kind-icon">fromSFENString</a></li>
|
|
114
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#ispromoted" class="tsd-kind-icon">is<wbr>Promoted</a></li>
|
|
115
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#oppositecolor" class="tsd-kind-icon">opposite<wbr>Color</a></li>
|
|
116
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#promote-1" class="tsd-kind-icon">promote</a></li>
|
|
117
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_piece_.piece.html#unpromote-1" class="tsd-kind-icon">unpromote</a></li>
|
|
118
|
-
</ul>
|
|
119
|
-
</section>
|
|
120
|
-
</div>
|
|
121
|
-
</section>
|
|
122
|
-
</section>
|
|
123
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
124
|
-
<h2>Constructors</h2>
|
|
125
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
126
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
127
|
-
<h3>constructor</h3>
|
|
128
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
129
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Piece<span class="tsd-signature-symbol">(</span>csa<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><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></li>
|
|
130
|
-
</ul>
|
|
131
|
-
<ul class="tsd-descriptions">
|
|
132
|
-
<li class="tsd-description">
|
|
133
|
-
<aside class="tsd-sources">
|
|
134
|
-
<ul>
|
|
135
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L80">Piece.ts:80</a></li>
|
|
136
|
-
</ul>
|
|
137
|
-
</aside>
|
|
138
|
-
<div class="tsd-comment tsd-typography">
|
|
139
|
-
<div class="lead">
|
|
140
|
-
<p>"+FU"などのCSAによる駒表現から駒オブジェクトを作成</p>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
144
|
-
<ul class="tsd-parameters">
|
|
145
|
-
<li>
|
|
146
|
-
<h5>csa: <span class="tsd-signature-type">string</span></h5>
|
|
147
|
-
</li>
|
|
148
|
-
</ul>
|
|
149
|
-
<h4 class="tsd-returns-title">Returns <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h4>
|
|
150
|
-
</li>
|
|
151
|
-
</ul>
|
|
152
|
-
</section>
|
|
153
|
-
</section>
|
|
154
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
155
|
-
<h2>Properties</h2>
|
|
156
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
157
|
-
<a name="color" class="tsd-anchor"></a>
|
|
158
|
-
<h3>color</h3>
|
|
159
|
-
<div class="tsd-signature tsd-kind-icon">color<span class="tsd-signature-symbol">:</span> <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></div>
|
|
160
|
-
<aside class="tsd-sources">
|
|
161
|
-
<ul>
|
|
162
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L76">Piece.ts:76</a></li>
|
|
163
|
-
</ul>
|
|
164
|
-
</aside>
|
|
165
|
-
<div class="tsd-comment tsd-typography">
|
|
166
|
-
<div class="lead">
|
|
167
|
-
<p>先後</p>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
</section>
|
|
171
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
172
|
-
<a name="kind" class="tsd-anchor"></a>
|
|
173
|
-
<h3>kind</h3>
|
|
174
|
-
<div class="tsd-signature tsd-kind-icon">kind<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
175
|
-
<aside class="tsd-sources">
|
|
176
|
-
<ul>
|
|
177
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L80">Piece.ts:80</a></li>
|
|
178
|
-
</ul>
|
|
179
|
-
</aside>
|
|
180
|
-
<div class="tsd-comment tsd-typography">
|
|
181
|
-
<div class="lead">
|
|
182
|
-
<p>駒の種類</p>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</section>
|
|
186
|
-
</section>
|
|
187
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
188
|
-
<h2>Methods</h2>
|
|
189
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
190
|
-
<a name="inverse" class="tsd-anchor"></a>
|
|
191
|
-
<h3>inverse</h3>
|
|
192
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
193
|
-
<li class="tsd-signature tsd-kind-icon">inverse<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>
|
|
194
|
-
</ul>
|
|
195
|
-
<ul class="tsd-descriptions">
|
|
196
|
-
<li class="tsd-description">
|
|
197
|
-
<aside class="tsd-sources">
|
|
198
|
-
<ul>
|
|
199
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L103">Piece.ts:103</a></li>
|
|
200
|
-
</ul>
|
|
201
|
-
</aside>
|
|
202
|
-
<div class="tsd-comment tsd-typography">
|
|
203
|
-
<div class="lead">
|
|
204
|
-
<p>駒の向きを反転する</p>
|
|
205
|
-
</div>
|
|
206
|
-
</div>
|
|
207
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
208
|
-
</li>
|
|
209
|
-
</ul>
|
|
210
|
-
</section>
|
|
211
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
212
|
-
<a name="promote" class="tsd-anchor"></a>
|
|
213
|
-
<h3>promote</h3>
|
|
214
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
215
|
-
<li class="tsd-signature tsd-kind-icon">promote<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>
|
|
216
|
-
</ul>
|
|
217
|
-
<ul class="tsd-descriptions">
|
|
218
|
-
<li class="tsd-description">
|
|
219
|
-
<aside class="tsd-sources">
|
|
220
|
-
<ul>
|
|
221
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L91">Piece.ts:91</a></li>
|
|
222
|
-
</ul>
|
|
223
|
-
</aside>
|
|
224
|
-
<div class="tsd-comment tsd-typography">
|
|
225
|
-
<div class="lead">
|
|
226
|
-
<p>成る</p>
|
|
227
|
-
</div>
|
|
228
|
-
</div>
|
|
229
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
230
|
-
</li>
|
|
231
|
-
</ul>
|
|
232
|
-
</section>
|
|
233
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
234
|
-
<a name="tocsastring" class="tsd-anchor"></a>
|
|
235
|
-
<h3>toCSAString</h3>
|
|
236
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
237
|
-
<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>
|
|
238
|
-
</ul>
|
|
239
|
-
<ul class="tsd-descriptions">
|
|
240
|
-
<li class="tsd-description">
|
|
241
|
-
<aside class="tsd-sources">
|
|
242
|
-
<ul>
|
|
243
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L109">Piece.ts:109</a></li>
|
|
244
|
-
</ul>
|
|
245
|
-
</aside>
|
|
246
|
-
<div class="tsd-comment tsd-typography">
|
|
247
|
-
<div class="lead">
|
|
248
|
-
<p>CSAによる駒表現の文字列を返す</p>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
252
|
-
</li>
|
|
253
|
-
</ul>
|
|
254
|
-
</section>
|
|
255
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
256
|
-
<a name="tosfenstring" class="tsd-anchor"></a>
|
|
257
|
-
<h3>toSFENString</h3>
|
|
258
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
259
|
-
<li class="tsd-signature tsd-kind-icon">toSFENString<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>
|
|
260
|
-
</ul>
|
|
261
|
-
<ul class="tsd-descriptions">
|
|
262
|
-
<li class="tsd-description">
|
|
263
|
-
<aside class="tsd-sources">
|
|
264
|
-
<ul>
|
|
265
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L115">Piece.ts:115</a></li>
|
|
266
|
-
</ul>
|
|
267
|
-
</aside>
|
|
268
|
-
<div class="tsd-comment tsd-typography">
|
|
269
|
-
<div class="lead">
|
|
270
|
-
<p>SFENによる駒表現の文字列を返す</p>
|
|
271
|
-
</div>
|
|
272
|
-
</div>
|
|
273
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
274
|
-
</li>
|
|
275
|
-
</ul>
|
|
276
|
-
</section>
|
|
277
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
278
|
-
<a name="unpromote" class="tsd-anchor"></a>
|
|
279
|
-
<h3>unpromote</h3>
|
|
280
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
281
|
-
<li class="tsd-signature tsd-kind-icon">unpromote<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>
|
|
282
|
-
</ul>
|
|
283
|
-
<ul class="tsd-descriptions">
|
|
284
|
-
<li class="tsd-description">
|
|
285
|
-
<aside class="tsd-sources">
|
|
286
|
-
<ul>
|
|
287
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L97">Piece.ts:97</a></li>
|
|
288
|
-
</ul>
|
|
289
|
-
</aside>
|
|
290
|
-
<div class="tsd-comment tsd-typography">
|
|
291
|
-
<div class="lead">
|
|
292
|
-
<p>不成にする</p>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
296
|
-
</li>
|
|
297
|
-
</ul>
|
|
298
|
-
</section>
|
|
299
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
300
|
-
<a name="canpromote" class="tsd-anchor"></a>
|
|
301
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> can<wbr>Promote</h3>
|
|
302
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
303
|
-
<li class="tsd-signature tsd-kind-icon">can<wbr>Promote<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">boolean</span></li>
|
|
304
|
-
</ul>
|
|
305
|
-
<ul class="tsd-descriptions">
|
|
306
|
-
<li class="tsd-description">
|
|
307
|
-
<aside class="tsd-sources">
|
|
308
|
-
<ul>
|
|
309
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L38">Piece.ts:38</a></li>
|
|
310
|
-
</ul>
|
|
311
|
-
</aside>
|
|
312
|
-
<div class="tsd-comment tsd-typography">
|
|
313
|
-
<div class="lead">
|
|
314
|
-
<p>成れる駒かどうかを返す</p>
|
|
315
|
-
</div>
|
|
316
|
-
</div>
|
|
317
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
318
|
-
<ul class="tsd-parameters">
|
|
319
|
-
<li>
|
|
320
|
-
<h5>kind: <span class="tsd-signature-type">string</span></h5>
|
|
321
|
-
</li>
|
|
322
|
-
</ul>
|
|
323
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|
324
|
-
</li>
|
|
325
|
-
</ul>
|
|
326
|
-
</section>
|
|
327
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
328
|
-
<a name="fromsfenstring" class="tsd-anchor"></a>
|
|
329
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> fromSFENString</h3>
|
|
330
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
331
|
-
<li class="tsd-signature tsd-kind-icon">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><a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></li>
|
|
332
|
-
</ul>
|
|
333
|
-
<ul class="tsd-descriptions">
|
|
334
|
-
<li class="tsd-description">
|
|
335
|
-
<aside class="tsd-sources">
|
|
336
|
-
<ul>
|
|
337
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L50">Piece.ts:50</a></li>
|
|
338
|
-
</ul>
|
|
339
|
-
</aside>
|
|
340
|
-
<div class="tsd-comment tsd-typography">
|
|
341
|
-
<div class="lead">
|
|
342
|
-
<p>SFENによる文字列表現から駒オブジェクトを作成</p>
|
|
343
|
-
</div>
|
|
344
|
-
</div>
|
|
345
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
346
|
-
<ul class="tsd-parameters">
|
|
347
|
-
<li>
|
|
348
|
-
<h5>sfen: <span class="tsd-signature-type">string</span></h5>
|
|
349
|
-
</li>
|
|
350
|
-
</ul>
|
|
351
|
-
<h4 class="tsd-returns-title">Returns <a href="_piece_.piece.html" class="tsd-signature-type">Piece</a></h4>
|
|
352
|
-
</li>
|
|
353
|
-
</ul>
|
|
354
|
-
</section>
|
|
355
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
356
|
-
<a name="ispromoted" class="tsd-anchor"></a>
|
|
357
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr>Promoted</h3>
|
|
358
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
359
|
-
<li class="tsd-signature tsd-kind-icon">is<wbr>Promoted<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">boolean</span></li>
|
|
360
|
-
</ul>
|
|
361
|
-
<ul class="tsd-descriptions">
|
|
362
|
-
<li class="tsd-description">
|
|
363
|
-
<aside class="tsd-sources">
|
|
364
|
-
<ul>
|
|
365
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L41">Piece.ts:41</a></li>
|
|
366
|
-
</ul>
|
|
367
|
-
</aside>
|
|
368
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
369
|
-
<ul class="tsd-parameters">
|
|
370
|
-
<li>
|
|
371
|
-
<h5>kind: <span class="tsd-signature-type">string</span></h5>
|
|
372
|
-
</li>
|
|
373
|
-
</ul>
|
|
374
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|
375
|
-
</li>
|
|
376
|
-
</ul>
|
|
377
|
-
</section>
|
|
378
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
379
|
-
<a name="oppositecolor" class="tsd-anchor"></a>
|
|
380
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> opposite<wbr>Color</h3>
|
|
381
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
382
|
-
<li class="tsd-signature tsd-kind-icon">opposite<wbr>Color<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="../enums/_color_.color.html" class="tsd-signature-type">Color</a></li>
|
|
383
|
-
</ul>
|
|
384
|
-
<ul class="tsd-descriptions">
|
|
385
|
-
<li class="tsd-description">
|
|
386
|
-
<aside class="tsd-sources">
|
|
387
|
-
<ul>
|
|
388
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L44">Piece.ts:44</a></li>
|
|
389
|
-
</ul>
|
|
390
|
-
</aside>
|
|
391
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
392
|
-
<ul class="tsd-parameters">
|
|
393
|
-
<li>
|
|
394
|
-
<h5>color: <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h5>
|
|
395
|
-
</li>
|
|
396
|
-
</ul>
|
|
397
|
-
<h4 class="tsd-returns-title">Returns <a href="../enums/_color_.color.html" class="tsd-signature-type">Color</a></h4>
|
|
398
|
-
</li>
|
|
399
|
-
</ul>
|
|
400
|
-
</section>
|
|
401
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
402
|
-
<a name="promote-1" class="tsd-anchor"></a>
|
|
403
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> promote</h3>
|
|
404
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
405
|
-
<li class="tsd-signature tsd-kind-icon">promote<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">string</span></li>
|
|
406
|
-
</ul>
|
|
407
|
-
<ul class="tsd-descriptions">
|
|
408
|
-
<li class="tsd-description">
|
|
409
|
-
<aside class="tsd-sources">
|
|
410
|
-
<ul>
|
|
411
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L10">Piece.ts:10</a></li>
|
|
412
|
-
</ul>
|
|
413
|
-
</aside>
|
|
414
|
-
<div class="tsd-comment tsd-typography">
|
|
415
|
-
<div class="lead">
|
|
416
|
-
<p>成った時の種類を返す.なければそのまま.</p>
|
|
417
|
-
</div>
|
|
418
|
-
</div>
|
|
419
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
420
|
-
<ul class="tsd-parameters">
|
|
421
|
-
<li>
|
|
422
|
-
<h5>kind: <span class="tsd-signature-type">string</span></h5>
|
|
423
|
-
</li>
|
|
424
|
-
</ul>
|
|
425
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
426
|
-
</li>
|
|
427
|
-
</ul>
|
|
428
|
-
</section>
|
|
429
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
430
|
-
<a name="unpromote-1" class="tsd-anchor"></a>
|
|
431
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> unpromote</h3>
|
|
432
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
433
|
-
<li class="tsd-signature tsd-kind-icon">unpromote<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">string</span></li>
|
|
434
|
-
</ul>
|
|
435
|
-
<ul class="tsd-descriptions">
|
|
436
|
-
<li class="tsd-description">
|
|
437
|
-
<aside class="tsd-sources">
|
|
438
|
-
<ul>
|
|
439
|
-
<li>Defined in <a href="https://github.com/na2hiro/Shogi.js/blob/24e2fd0/src/Piece.ts#L23">Piece.ts:23</a></li>
|
|
440
|
-
</ul>
|
|
441
|
-
</aside>
|
|
442
|
-
<div class="tsd-comment tsd-typography">
|
|
443
|
-
<div class="lead">
|
|
444
|
-
<p>表に返した時の種類を返す.表の場合はそのまま.</p>
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
448
|
-
<ul class="tsd-parameters">
|
|
449
|
-
<li>
|
|
450
|
-
<h5>kind: <span class="tsd-signature-type">string</span></h5>
|
|
451
|
-
</li>
|
|
452
|
-
</ul>
|
|
453
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
454
|
-
</li>
|
|
455
|
-
</ul>
|
|
456
|
-
</section>
|
|
457
|
-
</section>
|
|
458
|
-
</div>
|
|
459
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
460
|
-
<nav class="tsd-navigation primary">
|
|
461
|
-
<ul>
|
|
462
|
-
<li class="globals ">
|
|
463
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
464
|
-
</li>
|
|
465
|
-
<li class=" tsd-kind-module">
|
|
466
|
-
<a href="../modules/_color_.html">"<wbr>Color"</a>
|
|
467
|
-
</li>
|
|
468
|
-
<li class=" tsd-kind-module">
|
|
469
|
-
<a href="../modules/_constants_.html">"<wbr>Constants"</a>
|
|
470
|
-
</li>
|
|
471
|
-
<li class=" tsd-kind-module">
|
|
472
|
-
<a href="../modules/_imovedefinition_.html">"IMove<wbr>Definition"</a>
|
|
473
|
-
</li>
|
|
474
|
-
<li class="current tsd-kind-module">
|
|
475
|
-
<a href="../modules/_piece_.html">"<wbr>Piece"</a>
|
|
476
|
-
</li>
|
|
477
|
-
<li class=" tsd-kind-module">
|
|
478
|
-
<a href="../modules/_serialization_.html">"<wbr>Serialization"</a>
|
|
479
|
-
</li>
|
|
480
|
-
<li class=" tsd-kind-module">
|
|
481
|
-
<a href="../modules/_shogi_.html">"shogi"</a>
|
|
482
|
-
</li>
|
|
483
|
-
</ul>
|
|
484
|
-
</nav>
|
|
485
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
486
|
-
<ul class="before-current">
|
|
487
|
-
</ul>
|
|
488
|
-
<ul class="current">
|
|
489
|
-
<li class="current tsd-kind-class tsd-parent-kind-module">
|
|
490
|
-
<a href="_piece_.piece.html" class="tsd-kind-icon">Piece</a>
|
|
491
|
-
<ul>
|
|
492
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
493
|
-
<a href="_piece_.piece.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
494
|
-
</li>
|
|
495
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
496
|
-
<a href="_piece_.piece.html#color" class="tsd-kind-icon">color</a>
|
|
497
|
-
</li>
|
|
498
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
499
|
-
<a href="_piece_.piece.html#kind" class="tsd-kind-icon">kind</a>
|
|
500
|
-
</li>
|
|
501
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
502
|
-
<a href="_piece_.piece.html#inverse" class="tsd-kind-icon">inverse</a>
|
|
503
|
-
</li>
|
|
504
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
505
|
-
<a href="_piece_.piece.html#promote" class="tsd-kind-icon">promote</a>
|
|
506
|
-
</li>
|
|
507
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
508
|
-
<a href="_piece_.piece.html#tocsastring" class="tsd-kind-icon">toCSAString</a>
|
|
509
|
-
</li>
|
|
510
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
511
|
-
<a href="_piece_.piece.html#tosfenstring" class="tsd-kind-icon">toSFENString</a>
|
|
512
|
-
</li>
|
|
513
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
514
|
-
<a href="_piece_.piece.html#unpromote" class="tsd-kind-icon">unpromote</a>
|
|
515
|
-
</li>
|
|
516
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
517
|
-
<a href="_piece_.piece.html#canpromote" class="tsd-kind-icon">can<wbr>Promote</a>
|
|
518
|
-
</li>
|
|
519
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
520
|
-
<a href="_piece_.piece.html#fromsfenstring" class="tsd-kind-icon">fromSFENString</a>
|
|
521
|
-
</li>
|
|
522
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
523
|
-
<a href="_piece_.piece.html#ispromoted" class="tsd-kind-icon">is<wbr>Promoted</a>
|
|
524
|
-
</li>
|
|
525
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
526
|
-
<a href="_piece_.piece.html#oppositecolor" class="tsd-kind-icon">opposite<wbr>Color</a>
|
|
527
|
-
</li>
|
|
528
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
529
|
-
<a href="_piece_.piece.html#promote-1" class="tsd-kind-icon">promote</a>
|
|
530
|
-
</li>
|
|
531
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
532
|
-
<a href="_piece_.piece.html#unpromote-1" class="tsd-kind-icon">unpromote</a>
|
|
533
|
-
</li>
|
|
534
|
-
</ul>
|
|
535
|
-
</li>
|
|
536
|
-
</ul>
|
|
537
|
-
<ul class="after-current">
|
|
538
|
-
</ul>
|
|
539
|
-
</nav>
|
|
540
|
-
</div>
|
|
541
|
-
</div>
|
|
542
|
-
</div>
|
|
543
|
-
<footer class="with-border-bottom">
|
|
544
|
-
<div class="container">
|
|
545
|
-
<h2>Legend</h2>
|
|
546
|
-
<div class="tsd-legend-group">
|
|
547
|
-
<ul class="tsd-legend">
|
|
548
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
549
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
550
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
551
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
552
|
-
</ul>
|
|
553
|
-
<ul class="tsd-legend">
|
|
554
|
-
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
|
555
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
556
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
557
|
-
</ul>
|
|
558
|
-
<ul class="tsd-legend">
|
|
559
|
-
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
|
560
|
-
</ul>
|
|
561
|
-
<ul class="tsd-legend">
|
|
562
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
563
|
-
</ul>
|
|
564
|
-
<ul class="tsd-legend">
|
|
565
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
566
|
-
</ul>
|
|
567
|
-
</div>
|
|
568
|
-
</div>
|
|
569
|
-
</footer>
|
|
570
|
-
<div class="container tsd-generator">
|
|
571
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
572
|
-
</div>
|
|
573
|
-
<div class="overlay"></div>
|
|
574
|
-
<script src="../assets/js/main.js"></script>
|
|
575
|
-
</body>
|
|
576
|
-
</html>
|