Question
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
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):
- (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 ....
- (10) You have to use a struct, e.g., to represent the contents of the board
- (5) You have to use an enum, e.g., for the possible colors of the disks
- (5) You have to use a typedef, e.g., with your struct or enum (all these should be in your header file)
- (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.
- (10) You must have a header file and separate implementation in at least one *.c file.
- (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.
- (20) Everything compiles (10) and runs correctly (10)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started