Saturday, March 29, 2008

Game Logic

(A note to myself)
  • Q. Is there an accepted method of handling game-type logic? I've never programmed a game before. What's the best way to organize the computer's playing strategy?

  • A. It's called "minimax searching" on a tree of legal moves. There's an optimization on it called "alpha beta pruning". If you do a search on Google for those terms I bet you'll find a lot of information.

http://www.cs.cornell.edu/Courses/cs312/2002sp/lectures/rec21.htm

No comments: