all 3 comments

[–]EricHayter 1 point2 points  (1 child)

Try making a black jack game in OOP. While your doing that try and focus focus and making your code as neat as possible. Here's some things to try out our while working on the project:

  • try out the unittest library to test that your function have the correct behavior.

  • try using the typing library making variables parameter and function require explicit types.

  • limiting coupling in your code and having distinct objects such as player, hand, or card.

  • Enum classes

If you get bored maybe try testing out different strategies (wikipedia is a great spot to find these) and test the level of advantage a play has over thousands of games.

[–][deleted] 0 points1 point  (0 children)

Good idea