Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mazen

Alpha-beta pruning?

This topic is 6504 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

OK, does anyone know a good and understandable tutorial on alpha-beta pruning? Or is there anyone who can explain it? "We paint the sky with blood tonight, setting free the damned to fight"

Share this post


Link to post
Share on other sites
Advertisement
For the past 2 years I''ve been using the text "Artifical Intelligence" 2nd ed, by Elaine Rich and Kevin Knight published 1991 McGraw-Hill. It has a quite comprehensive discussion of search methods. There should be an updated version around by now.

Alpha-beta pruning is used with the mini-max search algorithm.
Basically it is a best-first search for 2 players:

1. Generate maximising moves for player 1 and evaluate. The
2. Take HIGHEST score from ENTIRE tree and from this move generate minimising moves (player2) and evaluate these.
3. Take move with LOWEST score in the ENTIRE graph and from this move generate maximising moves (player 1) and evaluate.
4. Go to 2. Rinse and repeat.

NOTE: This assumes best play on the part of player 2.

Also IMHO alpha-beta cutoffs on their own aren''t the whole solution to better search. You can imagine what happens when you get lots of players - it''s the AI equivalent of the N-body problem!

Hope this helps.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!