Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 309 Bytes
package main
import (
"fmt"
"github.com/cespare/go-tetris/tetris"
"github.com/nsf/termbox-go"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
err := termbox.Init()
if err != nil {
panic(err)
}
game := tetris.NewGame()
game.Start()
termbox.Close()
fmt.Println("Bye!")
}