Init project with a zombie model

This commit is contained in:
2020-03-14 22:48:29 +11:00
commit 1cb7327e2d
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
.idea
+2
View File
@@ -0,0 +1,2 @@
# Zombie
+18
View File
@@ -0,0 +1,18 @@
package models
// Zombie presents a zombie object
type Zombie struct {
Dimension Dimension
Coordinate Coordinate
}
// Dimension presents the n x n grid
type Dimension struct {
GridLength int
}
// Coordinate presents the location in the grid of the zombie
type Coordinate struct {
XAxis int
YAxis int
}