Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Alpha-Beta-Algorithm

 
Annette Schaffer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo Newsgroup,

I try to develop a boardgame that is similar to Gobang. Two players try to get 5 of their chips in a row on the gameboard. The computer's moves have to be calculated by using an Alpha-Beta-Algorithm and this is where I'm stuck. I can't get my mind around this algorithm, I also tried an easier Min-Max-Algorithm, but it also isn't working.

Does anyone has a working example of one of these algorithms in java-code? Maybe with evaluation function and for a similar game?

Thank you so much for your help!

Greetings from Germany,
Annette.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!