Alpha-Beta Pruning Demonstration

In class, we examined some example game tries to explore the use of the minimax algorithm for computing the optimal utility of a game tree, as well as the more efficient alpha-beta pruning algorithm. A copy of the examples we used can be downloaded here.

You may see an animated demonstration of both algorithms on these very same examples on turing as follows. Go to the directory /Public/goldwasser/362/games. Then you may execute any of the following commands.

Note that the -s argument is what is being used to set the random seed to produce the examples from class. If you want to get additional practice, feel free to pick other seeds, or to remove that flag entirely to get random instances. (If you want to know more, the -h flag will provide documentation.)


Michael Goldwasser
Last modified: Tuesday, 08 October 2013