Alpha-Beta cutoff

Posted by Becky on Stack Overflow See other posts from Stack Overflow or by Becky
Published on 2010-03-28T14:23:35Z Indexed on 2010/03/28 14:33 UTC
Read the original article Hit count: 349

Filed under:
|
|

I understand the basics of this search, however the beta cut-off part is confusing me, when beta <= value of alphabeta I can either return beta, break, or continue the loop.

  • return beta doesn't seem to work properly at all, it returns the wrong players move for a different state of the board (further into the search tree)

  • break seems to work correctly, it is very fast but it seems a bit TOO fast

  • continue is a lot slower than break but it seems more correct...I'm guessing this is the right way but pseudocode on google all use 'break' but because this is pseudocode I'm not sure what they mean by 'break'

© Stack Overflow or respective owner

Related posts about game

Related posts about tree