This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reversi edge game  RSS feed

 
Nick Stevens
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've written a reversi game and I'm currently trying to improve the edge play (which is not great at the moment!). After looking at some web sites I decided to this by generating all the possible arrangements of an edge of 8 squares and evaluating each edge configuration, using the mini-max algorithm. The edge and the evaluation result can then be savedin a file, which can be used by an evaluation method in the reversi game. In order to assess an edge I've tried counting the number of black and white wins found by mini-max, but I'm not sure whether this will work. For example, starting with an empty edge of 8 squares, playing a reversi game to the end gives twice as many wins for black as for white - I would have thought they should have the same number of wins? (I've written a gui and tried playing the edge game against the computer and it does seem to play well)

Any help would be much appreciated!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!