Question: Reversi (Othello) Board Design a program to play the game for Reversi (also known as Othello), using OpenGL, GLUT and C++. The board should be

"Reversi" (Othello) Board

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

Once you have designed a program to draw the game board, it is time to play the game. The program should allow the user to select the next move with a mouse click on an open square. Your program should verify that the move is a legal move, and refuse any illegal moves. 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 that a square had been selected, and some indication that an incorrect move was rejected. Turns should alternate, so that after a move of one color, the next move must be of the opposite color.

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!