Python script of minus(callbreak) card game.
Budget: ₹600 – ₹1,500 INR
Make a python script that works like:
1.Create a dictionary that have 52 key values, card name and value
example
cards= {'squad10':10,'diamond12':12,'heart6':6,'club9':9}
2.create 4 objects(players), and each player get 13 random cards.
3.First player throw a card, Then second player throw card, but second player can only throw same color card and bigger then first player card(if second player pass criteria for having cards, if not have same color bigger card but have same color card then throw same color card(smaller.
If not having same color card then, throw any squad card.
4. Same apply for 3rd player .
5.same apply for last(4th player).
6.From 4 cards whose player card is bigger he will score one point.
7. Repeat step 3rd, 4th, and so on until cards ends.
8. At last count every player score. And display them.
Important points:
Must use oops. Without oops projects will not be accepted.
You can search call break in play store, game must have same like that, but only python script that run in cmd.
1.Create a dictionary that have 52 key values, card name and value
example
cards= {'squad10':10,'diamond12':12,'heart6':6,'club9':9}
2.create 4 objects(players), and each player get 13 random cards.
3.First player throw a card, Then second player throw card, but second player can only throw same color card and bigger then first player card(if second player pass criteria for having cards, if not have same color bigger card but have same color card then throw same color card(smaller.
If not having same color card then, throw any squad card.
4. Same apply for 3rd player .
5.same apply for last(4th player).
6.From 4 cards whose player card is bigger he will score one point.
7. Repeat step 3rd, 4th, and so on until cards ends.
8. At last count every player score. And display them.
Important points:
Must use oops. Without oops projects will not be accepted.
You can search call break in play store, game must have same like that, but only python script that run in cmd.