Commit 94e949ea authored by Boris Mühmer's avatar Boris Mühmer
Browse files

changed name

parent a587a82f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
package wator

type celler interface {
type Celler interface {
	String() string
	Age() int
	SetAge(int)
+2 −2
Original line number Diff line number Diff line
@@ -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