diff options
-rw-r--r-- | tris/core.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tris/core.go b/tris/core.go index d0164e2..dc80efe 100644 --- a/tris/core.go +++ b/tris/core.go @@ -9,10 +9,12 @@ type Point struct { X, Y int } +// Add adds two points together func (p Point) Add(q Point) Point { return Point{X: p.X+q.X, Y: p.Y+q.Y} } +// A piece contains a value per rotation type Piece [4]uint16 // A table that represents each piece from https://tetris.fandom.com/wiki/SRS |