MIT-Emerging-Talent / 2024-group-11-collaboration-practice

MIT License
0 stars 3 forks source link

Challenge: Minimax #25

Open AhWalidShahab opened 10 months ago

AhWalidShahab commented 10 months ago

Solve Minimax Problem

Requirements:

Create a function with a clear and concise signature for the minimax algorithm. Define input parameters, such as the current game state, depth, and the maximizing/minimizing player.

Use recursive calls to explore the game tree. Consider both maximizing and minimizing players in different branches of the tree.

Ensure that the algorithm can undo moves after evaluating them. This is necessary for backtracking during the recursive calls.

add documentation all tests are green -->