You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Could be somehow like this)
Int Minimax(depth, turn) {
/*
*Recursively go through every possible results
*Decide which Point to go for each step
*
*/
check if end, if yes, return checkvalue;
else if depth==depth+3, return check value
get available states;
for (Point: Available states){
Move(Availabe states.get,turn)
Value=minimax(next children states, others turn)
max value
min value
}
if turn==1, return max
if turn==2, return min
}
The text was updated successfully, but these errors were encountered:
Operate minimax search to decide next step
(Could be somehow like this)
Int Minimax(depth, turn) {
/*
*Recursively go through every possible results
*Decide which Point to go for each step
*
*/
check if end, if yes, return checkvalue;
else if depth==depth+3, return check value
get available states;
for (Point: Available states){
Move(Availabe states.get,turn)
Value=minimax(next children states, others turn)
max value
min value
}
if turn==1, return max
if turn==2, return min
}
The text was updated successfully, but these errors were encountered: