MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

backtracking/minimax.py:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def main() -> None:
82 # Sample scores and height calculation
83 scores = [90, 23, 6, 33, 21, 65, 123, 34423]
84 height = math.log(len(scores), 2)
85
86 # Calculate and print the optimal value using the minimax algorithm
87 print("Optimal value : ", end="")
88 print(minimax(0, 0, True, scores, height))
89
90
91if __name__ == "__main__":

Callers 1

minimax.pyFile · 0.70

Calls 1

minimaxFunction · 0.85

Tested by

no test coverage detected