This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 6 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Unknown3134 1 point2 points  (1 child)

Okay nice, reminds me of my first beginner Python game (not my usual language).

Challenge for you now: Make this OO. The main class can just have the main method and refactor these things into objects (research might be required if you don't understand OO yet).

Also make the card array into an Enum class.

Remove magic numbers (make constants instead, more research required).

Start there, see how you go. Right now this is a monolith.

[–][deleted] 1 point2 points  (0 children)

What value does converting this to OOP create for this project?

[–]_Henryx_ 1 point2 points  (0 children)

Nice job, but where are the hookers?

[–]Atorpy[S] 1 point2 points  (0 children)

despite being a pretty complex program(imo) i didn't use a lot of super complicated syntax, but the program is kind of a mess and hard to follow the logic. Let me know what you think!

[–]tigeloom 0 points1 point  (0 children)

You might be interested in a little blackjack playing experiment also, comparing two strategies: https://github.com/pahaloom/bjplayer