boalberto
Re:Build Pong in Your Terminal with Go for Some Reason
on Tuesday July 26, 2022 @04:40PM (#32243685)
Thanks! Was great fun following along. Noticed a small typo in the first code segment, `screen` becomes `s` when calling s.Init().
Looking forward to part 2!
func main() {
screen, err := tcell.NewScreen()
if err != nil {
log.Fatalf("%+v", err)
}
if err := s.Init(); err != nil {
log.Fatalf("%+v", err)
}
}