Algorithms

Spring 2013
course
navigation

Apr 9

Discuss the search techniques for two player alternating complete information games, i.e. tic-tac-toe, chess, checkers, ....
This is usually thought of as another search tree, with the edges as possible moves and the root of the tree the starting position.
If we assign a value to each game position, with positive being good for one player and negative meaning bad, then successive players will choose moves that maximize or minimize among the branches.
Thus searching for the best move by considering what your opponent will do requires a "min-max" search algorithm.
This can be coded as
Discuss all these ideas, using
and my several code examples in code/games/ :
This bag game article explains the alpha-beta behind alpha-beta pretty well.
So to implement a board game, you need
... and then you plug it into the game engine.

Coding possibilities in class and/or for Thursday :
---
There are variations of this idea, e.g. http://en.wikipedia.org/wiki/Expectiminimax_tree
http://cs.marlboro.edu/ courses/ spring2013/algorithms/ notes/ Apr_9
last modified Thursday April 11 2013 10:51 am EDT