Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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):

  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. image text in transcribed
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>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

What was the maximum change in GDP from the government transfers?

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago