wip
This commit is contained in:
parent
a766faeae9
commit
80e5645a84
150 changed files with 305 additions and 2334 deletions
|
|
@ -203,7 +203,7 @@ export default class Reversi {
|
|||
* 打つことができる場所を取得します
|
||||
*/
|
||||
public canPutSomewhere(color: Color): number[] {
|
||||
const result = [];
|
||||
const result: number[] = [];
|
||||
|
||||
this.board.forEach((x, i) => {
|
||||
if (this.canPut(color, i)) result.push(i);
|
||||
|
|
@ -239,7 +239,7 @@ export default class Reversi {
|
|||
const enemyColor = !color;
|
||||
|
||||
// ひっくり返せる石(の位置)リスト
|
||||
let stones = [];
|
||||
let stones: number[] = [];
|
||||
|
||||
const initPos = pos;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue