Skip to main content

Questions tagged [playing-cards]

Programming questions involving digitally-represented playing cards. This includes representing cards and decks in data structures, user interfaces for manipulating cards in a virtual fashion, and implementing correct algorithmic shuffling.

7 votes
4 answers
996 views

I'm working right now on Project Euler problem 54, and I figured that this was the perfect opportunity to try to work with classes. This is my first time, so I'm sure that there are a lot of style, ...
Brais Romero's user avatar
4 votes
1 answer
183 views

I've been trying to learn Rust by working through Advent of Code 2023, specifically for day 7, part 1, here. It's Poker Lite: You're given a list of hands. The input is formatted as ...
roganjosh's user avatar
  • 143
7 votes
4 answers
2k views

This is my first time writing something bigger with OOP. A simplified version of the card game BlackJack. Hand splitting currently isn't implemented. File tree ...
dheb's user avatar
  • 83
9 votes
7 answers
1k views

I started the 100 Days of Code: The Complete Python Bootcamp about a week ago. I finished day 11, and I wrote a rudimentary blackjack game. I'm just looking for some advise on how I did. Am I showing ...
Wazeewa's user avatar
  • 91
3 votes
2 answers
318 views

This is code for a text-based game of Blackjack. I would also like advice on how can I implement a betting system in this program. For example starting with an amount of chips and choosing how much of ...
vaun's user avatar
  • 31
3 votes
2 answers
168 views

I have reached a point in my course that I feel I could use some feedback as to how my code looks and hopefully some direction on some best practice methodology going forward. I know I have a long way ...
ChucktheHeathen's user avatar
3 votes
1 answer
294 views

I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
nohgo's user avatar
  • 31
2 votes
1 answer
137 views

Several days ago, a question on this topic was posted to SO. The problem turned out to be the OP's test cases did not reveal a deficiency in the code. This challenge caught my attention. Writing the ...
user avatar
3 votes
1 answer
180 views

I'm implementing Reiner Knizia's card game 'Schotten Totten' in Python. It's a card game for two players, where you compete to claim boundary stones between you and your opponent by forming poker-like ...
Jan van Wijk's user avatar
1 vote
2 answers
136 views

Is there a meaningful way to simplify and refactor this function? It sorts the flop by rank and assigns a new suit according to the sorted rank order. Higher ranked cards will be assigned spades, ...
Carol Owens's user avatar
3 votes
1 answer
195 views

This is my attempt at a terminal based blackjack game. Currently, the game does not support betting, although I intend to add it in the future. I would very much appreciate general feedback, but I am ...
Katie Grace Porter's user avatar
1 vote
1 answer
238 views

First I would like to thank everyone for whatever help you may offer me. In full disclosure this is a project for a bootcamp class I have. My problem is, and I've asked them about this, that they aren'...
Infinite Grasp's user avatar
2 votes
2 answers
2k views

As you will probably notice very quickly from the code below, I'm not very experienced coder. Below is my attempt at valuating poker hands in Python. The code below may not be pretty but it seems to ...
Tom Mart's user avatar
0 votes
1 answer
102 views

I am making a poker game and poker-evaluator that I am using to tell me only the outcome from the cards ...
user266203's user avatar
1 vote
1 answer
184 views

This is my simple Blackjack game made in Python. I would love some feedback to write better code. ...
Daniel Russ's user avatar

15 30 50 per page
1
2 3 4 5
25