'use strict';

let Board = require('../Board');

// TODO: do with import
const BLACK = -1;
const EMPTY = 0;
const WHITE = 1;

describe('Board', () => {
  it('can be created', () => {
    let board = new Board(19);
  });

  it('can find a group', () => {
    let board = new Board(2);
    board.makeMove(0, 0, BLACK);
    board.makeMove(0, 1, BLACK);
    expect(board.findGroup(0, 0).spots.length).toEqual(2);
  });
});

@@ -407,13 +407,228 @@
 );%0A  %7D);
+%0A%0A  it('handles captures', () =%3E %7B%0A    let board = new Board(2);%0A    board.makeMove(0, 0, BLACK);%0A    board.makeMove(0, 1, WHITE);%0A    board.makeMove(1, 1, BLACK);%0A    expect(board.board%5B0%5D%5B1%5D).toEqual(EMPTY);%0A  %7D);
 %0A%7D);%0A

test that captures work