()
| 79 | |
| 80 | |
| 81 | def 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 | |
| 91 | if __name__ == "__main__": |