Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please solve in Java without inbuilt functions. Cards Game (Patay pe Pata): This is group-based project in which you have to design a simulation of

Please solve in Java without inbuilt functions.
image text in transcribed
Cards Game (Patay pe Pata): This is group-based project in which you have to design a simulation of Patay pe pata cards game that will run on console. It should behave like real world game. The game should have following features: FEAT 1: It should be a two player game. Not more or less than 2 players are allowed. Game proceeds till no winner. FEAT 2: Game will have cards and each card has color and Face Value. Color can be Spades, Hearts, Clubs or Diamonds. Face Value can be anyone of 2,3,4,10,J,Q, K,A. FEAT 3: You will have a deck of cards (52 cards). FEAT 4: At the start of the game, the deck of 52 cards are randomly divided into two equal decks of 26 cards. Both players are given 1 deck of cards. FEAT 5: At each turn, player draws the top card from his/her deck on table's deck. FEAT 6: If the Face Value of card placed by player is same as the top card of table deck then that player takes table deck, add it in its deck and shuffle it. FEAT 7: Else second player make his/her tum. FEAT 8: Both Players shuffle their cards each time any player get cards from table's deck. FEAT 9: Player who get table's deck throws another card at the end of his/her turn. FEAT 10: The player who has no remaining card in his/her deck losses

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions