Question: Please write a C code that would execute the game conditions described below in the form of the template provided. http://www.othelloonline.org/ for game instructions Thanks
Please write a C code that would execute the game conditions described below in the form of the template provided.



http://www.othelloonline.org/ for game instructions



Thanks
This week you will be modifying your playMove function to only accept certain moves. The game you are making is othello (if you have not guessed already). The objective of this game is to have the most pieces of your color on the board when the game finishes. You gain points by placing pieces of your color on the board and flanking (capturing) your opponent's pieces. The rules are as follows: 1. A piece (either a 'B' or 'W' in the case of our game) cannot be placed on top of a previously placed piece. The space must be empty. 2. If on your turn you cannot outflank and flip at least one opposing piece, your turn is forfeited and your opponent moves again. If a move is available to you, you may not forfeit your turn. 3. A piece may outflank any number of pieces in one or more rows in any number of directions at the same time horizontally, vertically or diagonally. (A row is defined as one or more pieces in a continuous straight line). See Figures 1 and 2. These Disc discs placed flipped Figure 1 here Figure 2 4. You may not skip over your own color piece to outflank an opposing piece. (See Figure This week you will be modifying your playMove function to only accept certain moves. The game you are making is othello (if you have not guessed already). The objective of this game is to have the most pieces of your color on the board when the game finishes. You gain points by placing pieces of your color on the board and flanking (capturing) your opponent's pieces. The rules are as follows: 1. A piece (either a 'B' or 'W' in the case of our game) cannot be placed on top of a previously placed piece. The space must be empty. 2. If on your turn you cannot outflank and flip at least one opposing piece, your turn is forfeited and your opponent moves again. If a move is available to you, you may not forfeit your turn. 3. A piece may outflank any number of pieces in one or more rows in any number of directions at the same time horizontally, vertically or diagonally. (A row is defined as one or more pieces in a continuous straight line). See Figures 1 and 2. These Disc discs placed flipped Figure 1 here Figure 2 4. You may not skip over your own color piece to outflank an opposing piece. (See Figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
