Пример #1
0
// Implementing logic.Notalive interface
func (w Wall) Break(dot *playground.Dot) {
	if dl := playground.DotList(w); dl.Contains(dot) {
		dl.Delete(dot)
	}
}
Пример #2
0
// Implementing playground.Object interface
func (w Wall) Pack() string {
	return playground.DotList(w).Pack()
}