This commit is contained in:
syuilo 2018-06-18 09:54:53 +09:00
parent a766faeae9
commit 80e5645a84
150 changed files with 305 additions and 2334 deletions

View file

@ -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;