diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ import ( "git.kiefte.eu/lapingvino/clitris/tris" "github.com/pkg/term" "time" + "math/rand" ) // GetKey() returns the key currently pressed. It always returns a 3 byte slice. Check first element for Escape for handling arrow keys @@ -21,6 +22,7 @@ func GetKey() []byte { } func main() { + rand.Seed(time.Now().UnixNano()) var f tris.Field var floor, topout, harddrop bool var x, y int |