Skip to content

Commit b638d0a

Browse files
committed
Merge branch 'develop'
2 parents c9ffe20 + f39b1ee commit b638d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/enso.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class EnsoGame extends GameBase {
162162
for (const dir of allDirections) {
163163
let ray = g.ray(fx, fy, dir).map(c => g.coords2algebraic(...c));
164164
const idx = ray.findIndex(cell => this.board.has(cell));
165-
if (idx > 0) {
165+
if (idx >= 0) {
166166
// this ray only contains contiguous empty spaces leading up
167167
// to the first occupied space
168168
ray = ray.slice(0, idx);

0 commit comments

Comments
 (0)