Web Analytics Made Easy -
StatCounter Minimax Algorithm and JavaScript - CodingForum

Minimax Algorithm and JavaScript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nolachrymose
    CodingForum Regular
    • Jun 2002
    • 342

    Minimax Algorithm and JavaScript

    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
    CodingForum Senior
    • Jun 2002
    • 1441

    #2
    what is the minimax algorithm?
    photoshop too expensive? use the GIMP! www.gimp.org

    Comment

    • nolachrymose
      CodingForum Regular
      • Jun 2002
      • 342

      #3
      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!

      Comment

      • ObiwanJebroni
        CodingForum Newbie
        • Jun 2002
        • 70

        #4
        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.
        -Obiwan Jabroni
        May the Schwartz be With You

        Comment

        • nolachrymose
          CodingForum Regular
          • Jun 2002
          • 342

          #5
          Correct anything that I've said that is incredibly stupid, please.
          Sure thing, oh Jedi padawan . I don't how to use the minimax algorithm, I just know what it does.

          Comment

          • iPhoneDev
            New to the CF scene
            • Jun 2009
            • 1

            #6
            Hi,

            you can check out a fine tutorial for minimax with alpha-beta pruning 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

            Comment

            Working...
            X