Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Gin Rummy The goal of the project is to develop a game where the computer (that is your program) plays Gin rummy against a human

Gin Rummy

The goal of the project is to develop a game where the computer (that is your program) plays Gin rummy against a human opponent.

The rules of Gin rummy are described in the Wikipedia page

https://en.wikipedia.org/wiki/Gin_rummy

(Links to an external site.)

Links to an external site.

You can implement any version of the game, although you are strongly encouraged to initially work on simpler versions of the game first.

The project consists of the following milestones-

Milestone 1 (Get familiar): Play the game manually to get a feel of the game. Remember, that unless you know how to play the game yourself, you cannot write program that allows the computer to play the game!

Milestone 2 (Design): Figure out the following that you will need - 1) Classes 2) Data Structures 3) Algorithms. As an example, you could have a "Card" class to represent different suites and ranks; data structures to hold stock pile, discard pile, and player hands; and algorithms to identify melds, and deadwood.

Milestone 3: Implement and test each of the classes individually. Note: All your code should be organized as separate files - that is, class declarations in headers, and definitions in implementation files.

Milestone 4: Integrate all components and test the final game.

Milestone 5: Ask a friend (outside your group), to play against the computer.

Note: You may have to iterate over the milestones. For example, if the integration causes issues, it's possible you may need to revisit Milestone 2.

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

Step: 3

blur-text-image

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions