Menu

(Solved) : Reversi Othello Board Design Program Play Game Reversi Also Known Othello Using Opengl Glu Q44114723 . . .

“Reversi” (Othello) Board

Design a program to play the game for “Reversi” (also known asOthello), using OpenGL, GLUT and C++. The board should be an 8 by 8grid of squares as shown below. The board should be a “neutral”color with dark grid lines. Add the four initial pieces in theirstarting positions. Make the piece colors black and white or anyother high contrasting colors.

Once you have designed a program to draw the game board, it istime to play the game. The program should allow the user to selectthe next move with a mouse click on an open square. Your programshould verify that the move is a legal move, and refuse any illegalmoves. If the selected move is legal, place the new piece and”flip” the appropriate opponent pieces.

Nice user interface features would be some visual feedback thata square had been selected, and some indication that an incorrectmove was rejected. Turns should alternate, so that after a move ofone color, the next move must be of the opposite color.

Your program should draw the board, and should respond tocallbacks to service the mouse button and to automatically redrawthe window if the display is covered and then uncovered. Theprogram should not quit until quit is selected from thewindow menu.

Expert Answer


Answer to “Reversi” (Othello) Board Design a program to play the game for “Reversi” (also known as Othello), using OpenGL, GLUT an…

OR