1. Engineering
  2. Computer Science
  3. using c you have a choice between human vs human...

Question: using c you have a choice between human vs human...

Question details

Using C

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:
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)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution