Skip to content

Instantly share code, notes, and snippets.

@plutov
Created February 22, 2024 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/eaeeb7eb6f5443f90f54ae7fc312f6ee to your computer and use it in GitHub Desktop.
Save plutov/eaeeb7eb6f5443f90f54ae7fc312f6ee to your computer and use it in GitHub Desktop.
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