Question
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
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