alanhdu / hunt

Play Hunt (the terminal game) online at http://quiet-forest-3036.herokuapp.com/
1 stars 0 forks source link

numNeighbors returns one too high is a cell is True #8

Closed samm81 closed 10 years ago

samm81 commented 10 years ago

start array([[ True, True, True, True, True, True, True], [ True, False, False, True, False, True, True], [ True, True, True, False, False, False, True], [ True, False, True, True, True, False, True], [ True, False, True, False, False, False, True], [ True, False, True, False, False, False, True], [ True, True, True, True, True, True, True]], dtype=bool) n = game.numNeighbors(start) n array([[1, 1, 1, 1, 1, 1, 1], [1, 7, 6, 5, 5, 6, 1], [1, 6, 5, 5, 4, 5, 1], [1, 7, 5, 5, 2, 4, 1], [1, 6, 4, 5, 2, 4, 1], [1, 7, 5, 5, 3, 5, 1], [1, 1, 1, 1, 1, 1, 1]])

n[2, 3] should be 4 not 5

samm81 commented 10 years ago

resolved