class Conjunction implements Predicate {

	@Override
	public boolean at(short p) {
		return a.at(p) && b.at(p);
	}

}

class ConjunctionTest {

	private Board board;
	private Conjunction conjunction;
	private CoordinateSystem coords;

	@Test
	public void testAt() {

		String[] before = {
				"......#",
				".....#.",
				"..#...#",
				".#.#...",
				"..#....",
				".......",
				".......",
		};
		board.setUpProblem(before, BLACK);
		assertFalse(conjunction.at(at("g6")));
		assertFalse(conjunction.at(at("c4")));
		assertFalse(conjunction.at(at("a2")));
		assertTrue(conjunction.at(at("d3")));
	}

}