View Single Post
Old 07-30-2017, 11:08 AM   #43
HeatDeath
 
Join Date: May 2012
Default Re: I was hoping for this

AIs that look ahead only one turn do usually lose to more perceptive opponents. The trick is to look at all of the current possible moves, AND all of the opponents possible responses to each of those, AND all of your possible responses to each of those possible responses, etc, as far ahead as you have memory and processing power, and pick the immediate move that leads to the best result X turns ahead, even if it's not the best immediate result. This is called "min-maxing" because you minimize your opponents score and maximize your own on each iteration of the loop.
HeatDeath is online now   Reply With Quote