- Use classes
- Use inheritance
- Use modules (create your own)
- Unit test all of the things!!!
- Small and frequent commits
- Use branches
- Merge branches by first opening and reviewing pull requests
-
BlackJack_Game
-
main_app.py
- Class CardDealer
-
module_card.py (imported to main_app.py)
- Class Card
-
module_role.py (imported to main_app.py)
- Class Role
-
test_main_app.py
- Unittest of main_app.py (This unittest also apply for blackjack_all_in_one.py)
-
blackJack_all_in_one.py (
- Combine all classes in one piece py file)