Posts

Showing posts from February, 2019

Blackjack Game Final Version

This is the final version of my Blackjack game.  The major difference between the final version and an earlier version is the Ace card.  In the final version, the Ace card can either have a value of 1 or 10. This depends on the value of the hand. Below is the code used for the Ace card: if 'A' in c_ranks and self.hand_value +10 <= 21:             self.hand_value = sum(h_val) + 10         else:             self.hand_value = sum(h_val) You can see the final version in the video. Here is the grading rubric which describe how the game was graded: You must implement the rules of Blackjack specified in this description. • 1 pt - The program displays the title "Blackjack" on the canvas. • 1 pt - The program displays 3 buttons ("Deal", "Hit" and "Stand") in the control area. • 2 pts - The program graphically displays the player's hand using card images. (1 pt if text is disp...

Latest Asteroids/ Rice Rocks version

Image
This is the latest version of Asteriods /Rice Rocks using SimpleGui.  As you can see from the picture, the missile (blue stars) don't disappear. I will need to work on this for the next version. In this version, there is no score. The only thing that has been added is the collision between the asteroids and the ship.  Each time the ship collies with an asteroid. The lives count is dropped by 1. Since I haven't put a floor for the number of lives, the game will continue forever. I should also note that in this version, I have included an image at the start of the game.  This image was given to me by the professors. You can see the game in the attached video:

Final Version -Memory Game

This is the final version of the memory game.  I submitted it for grading last week and did well. The problem with the online class is that I try to finish 90% of the projects before I submit them for grading.  This causes me to take more time to do the class.  I am constantly having to switch sessions. It also means that when I do finally decide to submit the project I have to go back over all the code. The moral of the story is always write detailed comments in your code.