def test_hit(): b = Board() b.add_counter(5, 5) assert b.potshot(5, 5) == Board.HIT assert b.defeated() b.display()
def test_board(): b = Board() b.add_counter(0, 0) b.add_counter(9, 9) b.display() assert not b.defeated()