This page contains Python games written as part of the Coursera
"An Introduction to Interactive Programming in Python" Course by Rice University.
The Python code is converted into javaScript using codeskulptor.org environment so it runs as
a web interactive window.
Running the games require new browser support - it doesn't work with old browser versions.
Games
Output
Guess The Number Game
In this game the player try to guess the number the computer chosen.
There are option to guess a number between 0-100 in 7 guesses or a number between 0-1000 in 10 guesses.
After running the game, write your guess in the text area and click Enter. In the output you see how the status
Stop Watch Game
In this game a stop watch is shown. The player tries to run and stop the watch on a round sec.
A count of the number of success vs. number of tries is shown
Memory Card Game
This is a memory card game. The player clicks on a card and try to find pair of cards
If the cards are a pair, they are kept exposed. If not they are flipped over
My record for exposing all cards is 11 turns
Pong Game
In this game the player need to move the paddles and keep the ball in the game
To move the Right paddle up/down arrows are used
To move the left paddle w/s keys are used
Every successful hit the ball moves faster to make the game more interesting
BlackJack Game
In this game the player plays against a dealer with the goal of having cards with a total value higher than the dealer's hand, but not over 21.
The player and the dealer are each start with two cards and one of the dealer's cards faced down.
The player can "hit" to deal a new card. If the total value of the cards is over 21, the player loses.
At any point before reaching 21, the player may "stand" and the dealer will then hit his hand he stand.
If the dealer cards are over 21, the player wins.
If no one cards are over 21, the one with the highest value win. Tie is in favor of the dealer.
An ace may be valued as either 1 or 11 and face cards (kings, queens and jacks) are valued at 10.
Asteroid Game
Try to shot asteroids. Left/Right key to turn, Up key to thrust, space to shoot