Remove debugPrinter code

[?]
Dec 30, 2020, 3:00 PM
VLJVFT6WPTQHAYLJQFDS4NIJ7FYURTEFTC5ZSKSCV3KQUBXY27VAC

Dependencies

  • [2] HSJSKGY7 Refactoring evaluate functions
  • [3] BCLXJIHI go doc updates
  • [4] R6MPEEL2 Refactoring minimax tests
  • [5] ZAZCOSBX Enhance test readability by renaming couple variables
  • [6] NJFOEVJ3 Initial import
  • [7] G5KXCVIL tictactoe: initial import

Change contents

  • edit in snippets/tictactoe/tictactoe.go at line 4
    [3.48][3.48:93]()
    import (
    "fmt"
    "os"
    )
    const debug = true
  • edit in snippets/tictactoe/tictactoe.go at line 16
    [2.69][2.69:70](),[2.70][3.255:369](),[3.255][3.255:369]()
    func debugPrinter(format string, a ...interface{}) {
    if debug {
    fmt.Fprintf(os.Stderr, format+"\n", a...)
    }
    }
  • edit in snippets/tictactoe/minimax_test.go at line 25
    [3.820][3.820:922]()
    //debugPrinter("len(scores): %d, height: %v int(height): %d", len(tc.scores), height, int(height))