Commits

sweemeng committed c6152e0

added struct for determining playing win loss

  • Participants
  • Parent commits 98fd608

Comments (0)

Files changed (1)

goproj/positions/positions.go

     Location [2]float32
 }
 
+type Player struct{
+    Name string
+    Profession string
+    Score int32
+}
+
 func init(){
     http.HandleFunc("/position/",handler)
     http.HandleFunc("/", defaultHandler)
         w.WriteHeader(http.StatusFound)
         return
     }
-    count := 10
+    count := rand.Intn(30)
     parr := []Position{}
     for i := 1; i<=count; i++ {
         parr = append(parr,Position{u.String(),[2]float32{3.10593+rand.Float32(),101.66478+rand.Float32()}})
         return
     }
     fmt.Fprint(w,string(b))
+}
 
-
+func action(w http.ResponseWriter.r *http.Request){
+    
+   fmt.Fprint(w,"Velociraptor")
 }