Some updates

This commit is contained in:
2025-10-22 16:38:12 -05:00
parent b00f1ce9c5
commit cf47b5a4e4
7 changed files with 221 additions and 17 deletions

View File

@@ -32,8 +32,8 @@ type Buffer struct {
minX, minY int
}
func NewBuffer() Buffer {
return Buffer{cells: make(map[Coord]Cell)}
func NewBuffer() *Buffer {
return &Buffer{cells: make(map[Coord]Cell)}
}
func (b *Buffer) Width() int { return b.maxX - b.minX }