Loading cell.go +1 −1 Original line number Diff line number Diff line package wator type celler interface { type Celler interface { String() string Age() int SetAge(int) Loading ocean.go +2 −2 Original line number Diff line number Diff line Loading @@ -10,14 +10,14 @@ import ( // Ocean is the container for fish and sharks. type Ocean struct { cells map[position]celler cells map[position]Celler fishes map[position]*fish.Fish sharks map[position]*shark.Shark } // CreateOcean initializes a new ocean. func createOcean() (*Ocean, error) { o := &Ocean{cells: make(map[position]celler)} o := &Ocean{cells: make(map[position]Celler)} o.fishes = make(map[position]*fish.Fish) o.sharks = make(map[position]*shark.Shark) return o, nil Loading Loading
cell.go +1 −1 Original line number Diff line number Diff line package wator type celler interface { type Celler interface { String() string Age() int SetAge(int) Loading
ocean.go +2 −2 Original line number Diff line number Diff line Loading @@ -10,14 +10,14 @@ import ( // Ocean is the container for fish and sharks. type Ocean struct { cells map[position]celler cells map[position]Celler fishes map[position]*fish.Fish sharks map[position]*shark.Shark } // CreateOcean initializes a new ocean. func createOcean() (*Ocean, error) { o := &Ocean{cells: make(map[position]celler)} o := &Ocean{cells: make(map[position]Celler)} o.fishes = make(map[position]*fish.Fish) o.sharks = make(map[position]*shark.Shark) return o, nil Loading