I had developed the game
of Reversi
(Othello
) during my BTech from 1999 till 2002. The earlier versions of the game
was in DOS
where user was supposed to enter row/column to make a move. I changed it to cursor based implementation and then migrated the whole code to Windows
. I also added Windows
Help which included history, rules and information about the algorithms
I had used in deciding the best move for the computer. There were three different algorithms used:
- The move which captures the highest number of opponent's balls - this was very preliminary
- Each cell was given a priority with corner cells given higher priority than the middle ones and the next move was decided based on this priority.
- A minimax search tree based approach where I was creating a tree of moves by both the players and was trying to get the best move that results in a win ultimately.
During my BTech Thesis in final year, I extended the game
Recently I thought of learning programming in Android
His website gives details about perft, a method to verify the correctness of the move generation engine and different board representations. It also talks about protocols UCI, XBoard and Winboard that completely separates game engine from the user interface. During my own development of Reversi
No comments:
Post a Comment