1. Engineering
  2. Computer Science
  3. using c board game should look like picture provided you...

Question: using c board game should look like picture provided you...

Question details

Using C, board game should look like picture provided

You have a choice between human vs. human and human vs. computer. You will indicate which one you chose by the name of your executable. For human vs. computer, name your executable othello. For human vs. human, name it reversi. You are only required to implement one of those, but if you decide to implement both, you can earn up to 10 extra points.

Create and use a directory named assignment3 in your git repo containing all source files and the Makefile.

The following are the only requirements (with the requisite point values):

  1. (5) In the very beginning of the game, prompt for the board size, e.g., to create a 12x12 board:
./othello
Please enter the size of the board: 12
..... the game input/output ....
  1. (10) You have to use a struct, e.g., to represent the contents of the board
  2. (5) You have to use an enum, e.g., for the possible colors of the disks
  3. (5) You have to use a typedef, e.g., with your struct or enum (all these should be in your header file)
  4. (20) Memory allocation, initialization, computing the next move, etc. should be in separate functions. Your main() should contain very few implementation details apart from calling functions.
  5. (10) You must have a header file and separate implementation in at least one *.c file.
  6. (15) Create a Makefile that builds an executable named othello if you are implementing human vs computer and reversi if you are implementing human vs human (please try to spell these exactly as asked, it makes testing much less onerous). The command make othello should produce the othello executable or equivalently, make reversi should produce the reversi executable.
  7. (20) Everything compiles (10) and runs correctly (10)
  8. rs Administrator Dropbox Nreading CS120_C_complete hw code>main thello 0 1 2 3 456 7 layer 1 turn, input 2 numbers (0-7) for row and col>3 S layer 14 Player 2>1 0 1 2 3 4567 layer 2 turn, input 2 numbers (0-7) for row and col>2 3 layer 13 Player 23 0 1 2 3456 7 layer 1 turn, input 2 numbers (0-7) for row and col>
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution