aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index bd3ecea..f6f4214 100644
--- a/main.go
+++ b/main.go
@@ -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