Odd clusters using c++ programming

The objective of this project is to write an interactive Odd Clusters game, using the programming knowledge you have gained this semester.  Your task is to write a programthat allows one player to play a game of Odd Clusters against the computer or for twoindividuals to play against each other. 

BASIC RULES OF ODD CLUSTERS 

Odd Clusters is a board game played between two players, who alternatepiece placement on a square board, with sixty-four smaller squares, arrangedin an 8×8 grid. The players take turns. A turn consists of placing one piece onthe board in an unoccupied square. 

A cluster is a grouping of one player’s pieces connected by adjacency. Thesmallest cluster is a single piece.  An Odd Cluster is one composed of an oddnumber of pieces. If a piece placement creates a cluster of an even numberof pieces (an even cluster), the entire even cluster is cleared (the boardlocations are emptied). A player may have any number of Odd Clusters on theboard. Play ends when the board is completely full of pieces or the playersagree to end the game. The winner is the player with the most pieces on theboard at the end of the game.

 

Specifications

 

• User interface – the player shall be able to:

o Place a pieceo Resign from the game (quit)

• allow valid placement only (can’t place a piece on an occupied location)• clear even clusters after notifying the participants that one has beenconstructed

• redisplay the game board after each move• handle computer’s turn • determine that game is over if board is completely full• determine the winner at game’s conclusion and congratulate the winner• allow user to select who makes first move of game (user or computer)• allow user to save current game for future continuation• allow user to reload an existing game to continue playing• allow for two player mode (computer only checks for validity and removeseven clusters) in addition to one player/ computer mode

• computer piece placement should be done using randomization• you must employ functions (minimally 8) in both your design and code. Yourmain function should be looked upon as a driver function – mainly makingfunction calls to specific modules.• The program must contain comments and• Each function and the program need to have comment headers

• NO GLOBAL VARIABLES SHOULD BE USED• You may have two global constants – for board rows, cols.

The remainder of the semester will be spent on this project.  Time will be devoted todiscussing the mandatory components of the project.  Some time will also be allocatedfor general program design discussion and/or examples.  The final project will consist ofdesign, algorithm, code and testing components. 







Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Enjoy 10% OFF today with the coupon code: best10