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.
No comments:
Post a Comment