Site Index Intro Learning to Program Python Programs Tutorials Links

Ideas for new games and programs

On this page I shall list the games and/or programs that I think will be good tutorials and hopefully provide a good learning curve.

BlackJack

Difficulty level: Easy/intermidiate

Basic rules: BlackJack is a card game, where the player plays against a dealer with the goal of getting a higer score than the dealer and on the same time not going over 21. Ace counts as one or 11 all picture cards count as 10 the remaining cards are worth the their respective face values.

Description: BlackJack is fairly automated and thus should not pose too big a hassle, the player decides when to stop getting anymore cards as he sees fit so long the sum of the cards are not more than 21. The dealer (i.e. the AI) has some very defined guidelines on when to hit and when to stand. The dealer has to stand when on 17 or above. All there is left is to see who (the player or the dealer) has the highest score without going over 21.
There are more to it such as splitting pairs, doubling down and insurence. Of these rules splitting should be the toughest as it will require the player to play more than one hand. The other two rules are can be done with some side bets.
The game should be made to run in a command prompt. Therefore this is mostly an excersice in control flow, and should make a good first game tutorial.

URL location: http://dbhome.dk/learningtoprogram/programs/blackjack

BlackJack GUI aka BlackJack version 2.0

Difficulty level: Intermediate/hard

Basic rules: Same as above

Description: The difficulty level is intermidiate as the rules has been done on the previous BlackJack game, and then there is only the hard part left of creating the GUI (Graphical User Interface). Hence this ought to be a good progression from BlackJack because the problem in hand is mostly about implementing the GUI.

Eight colum solitaire (Danish name Otte Kabalen)

Difficulty level: Intermidiate/hard

Basic rules: A game of solitaire where the first four colums of cards are face up the following coloums will have a 4X4 cards face down with a further two rows at the buttom with faces up. Cards are moved to the card with same type of colour and the value one higher, e.g. five of club can be moved on to six of club but cannot be moved to the six of spade (also black). The rest of the rules are as we know them in solitaire. Ace counts as one, and the goal of the game is turn all cards up, and clear the table.

Description: Again a card game, Which means alot of code can be reused from BlackJack GUI, if you have written that. However this game will put more emphasis on mouse controls such as point and click and drag. Should not be to hard to pull off but should be seen more as further introduction on graphical interfacing.

Mølle

Difficulty level: Intermediate/hard

Basic rules: Mølle is a clasical dansish board game a bit similar to tic-tac-toe, where the goal of the game is to get three positions in a straight line. The board (see picture) is made of three squares with four intersections on the middle of each side on the all squares. Each player has nine pieces to move around on the board