export function getMoves(grid: boolean[]): number[] {
  return grid
          .map((value, index) => value == undefined ? index : undefined)
          .filter(value => value != undefined);
}

import { Grid, Move } from './definitions';

export function getMoves(grid: Grid): Move[] {
  return grid
          .map((value, index) => value == undefined ? index : undefined)
          .filter(value => value != undefined);
}

Make getMoves function use Grid and Move
Make getMoves function use Grid and Move
