mirror of
https://github.com/wahyd4/zombie.git
synced 2026-08-08 20:25:56 +10:00
Init project with a zombie model
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.idea
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user