I've attached here one more blackjack example since I am still seeing some questions about how these trickier examples of objects work.
Questions about anything?
It may be worth going over another example of objects. Perhaps we could build a simple graphics "game" in class, with a board which has three places to put a piece which can move to where the user clicks. The objects would be something like (Board, Piece, Player.)
I've also put a graphical tic-tac-toe object thingy into the code/objects folder.
Discuss some of the ideas in the algorithms chapter.
Check out hanoi.py in the code/algorithms folder.
last modified | size | ||
blackjack_again.py | Tue Dec 03 2024 07:06 pm | 3.2K |