Hi Norbert,
The algorithm I'm using is pretty well known as MiniMax algorithm. Ther is indeed a optimization called Alpha-Beta-Search, which cuts of alot!
I try to implement this strategie for a connect4 game which in general has 6 rows and 7 columns one could put a stone into. (7 possible...
Thank you for your answer :)
Yes "max" calls "min" and "min" calls "max". It simulates something like this: I choose the move that is best for me (max) and then my oponent chooses his move that is worst for me (min) and then I choose the best move for me again (max) and so on. It simulates that...
let me try to clarify this. Basically I have two options:
module ai
function makeYourTurn(_playingField)
Integer :: makeYourTurn
Integer, dimension(:,:) :: _playingField
makeYourTurn=max(0, _playingField)
end function makeYourTurn
recursive function max(searchDepth...
Thx for the fast reply. I probably will implement both versions and mesure the time. Im not sure about a non recursive version though xD. Would be pretty hard to do that.
What I'm doing here is a MiniMax algorithm (http://en.wikipedia.org/wiki/Minimax) finding the best move for an AI Player...
Hi, this is my first post here so I hope I do everything right. Im trieing to optimize my fortran95 code and I stumbled over something I couldnt solve with google or the forum search here. Maybe I dont now the right keywords to search for.
Given an recursive function that could be called...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.