View Full Version : Minimax Algorithm and JavaScript
nolachrymose
06-28-2002, 08:07 PM
I was wondering if anyone knew of a good resource online about how to utilize the minimax algorithm with JavaScript? Any help is greatly appreciated.
Happy coding! :)
whackaxe
06-28-2002, 09:18 PM
what is the minimax algorithm?
nolachrymose
06-28-2002, 09:20 PM
The minimax algorithm is an algorithm that you can use for AI. The name stems from the idea that the computer tries to maximize its chances of winning while minimizing the chances of the user of winning.
Happy coding! :)
ObiwanJebroni
06-28-2002, 09:55 PM
Well, assuming that you already know the minimax algorithm and you have a fairly good understanding of JavaScript (which I don't, btw, so I don't pay too much attention to me ;) ), you should be able to make the AI easily. I know that the basic ideas of an algorithm remain the same from language to language. An AI I designed in VB had the same algorithm as the one I designed in VC++. From what I know of JavaScript, you merely have to use more JS than HTML to make dynamic output for your AI.
Correct anything that I've said that is incredibly stupid, please.
nolachrymose
06-28-2002, 11:36 PM
Correct anything that I've said that is incredibly stupid, please.
Sure thing, oh Jedi padawan :rolleyes:. I don't how to use the minimax algorithm, I just know what it does.
iPhoneDev
06-29-2009, 04:02 PM
Hi,
you can check out a fine tutorial for minimax with alpha-beta pruning (http://www.imapps.net/devblog/files/alphabeta-objc.html) although written in Objective C but it might give you a hint about how to use it and implement it (pay more attention to the text rather than the code if you don't understand Objective C :))
Cheers
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.