Changes
1 changed files (+1/-5)
-
-
@@ -79,7 +79,6 @@ if err != nil {panic(err) } s.build(rows, 0, N-1, 1) sum := s.seg[1] rows.Close() if *verbose {
-
@@ -96,11 +95,10 @@ defer exec.Command("stty", "-F", "/dev/tty", "echo").Run()for { // Choose a random card x := rand.Intn(sum) x := rand.Intn(s.seg[1]) w, i := s.query(x, 0, N-1, 1) if *verbose { fmt.Println(sum) fmt.Println(x) fmt.Println(w) fmt.Println(i)
-
@@ -120,9 +118,7 @@ // Read user inputos.Stdin.Read(b) if b[0] == byte('y') { w >>= 1 sum -= w } else if b[0] == byte('n') { sum += w w <<= 1 } else { os.Exit(0)
-