Skip to content

Commit ac19313

Browse files
committed
fix: Fixing the coding style
1 parent 4af6120 commit ac19313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/r/karma1337/conway/game.gno

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ func (ge *GameEngine) CountNeighbors(grid *Grid, x, y int) int {
2828
// and bounds checking by accessing the cells array directly.
2929
func (ge *GameEngine) countNeighborsOptimized(grid *Grid, x, y int) int {
3030
count := 0
31-
31+
3232
// Check all 8 neighbors with bounds checking optimized
3333
for dy := -1; dy <= 1; dy++ {
3434
for dx := -1; dx <= 1; dx++ {
3535
if dx == 0 && dy == 0 {
3636
continue // Skip the cell itself
3737
}
38-
38+
3939
nx, ny := x+dx, y+dy
4040
// Inline bounds check for better performance
4141
if nx >= 0 && nx < GRID_WIDTH && ny >= 0 && ny < GRID_HEIGHT {

0 commit comments

Comments
 (0)