commit 1cb7327e2d79bd0c7d1be08d1c301148db87292f Author: Junwei Zhao Date: Sat Mar 14 22:47:55 2020 +1100 Init project with a zombie model diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/README.md b/README.md new file mode 100644 index 0000000..093dd09 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Zombie + diff --git a/models/zombie.go b/models/zombie.go new file mode 100644 index 0000000..73d992c --- /dev/null +++ b/models/zombie.go @@ -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 +} \ No newline at end of file