Skip to content

Commit

Permalink
Adding domain package
Browse files Browse the repository at this point in the history
  • Loading branch information
kbca committed Mar 16, 2022
1 parent dadc4b9 commit df2ceaa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions domain/board.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package domain

type cell struct {
coordX int
coordY int
number int
}

type Board struct {
cells [81]cell
}

func (board *Board) RandomizeBoard() {
for i := range board.cells {
board.cells[i].number = 1
}
}

0 comments on commit df2ceaa

Please sign in to comment.