Created
February 22, 2024 10:05
-
-
Save plutov/eaeeb7eb6f5443f90f54ae7fc312f6ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package snake | |
type Food struct { | |
x, y int | |
} | |
func NewFood(x, y int) *Food { | |
return &Food{ | |
x: x, | |
y: y, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment