Personal Computer News


Solo Poker

 
Published in Personal Computer News #092

It's a tricky hand that your Commodore 64 deals in this solitaire card game by Keith Hobley.

Commodore 64: Solo Poker

It's a tricky hand that your C64 deals in this solitaire card game by Keith Hobley

A computer has to be the ultimate in poker faces, so you'd expect Poker Solitaire for the Commodore 64 to be tricky. You'd be right.

The game's layout consists of five rows of five face-up cards each, and you place the cards dealt by the computer in any position you choose. You can't move a card after you've placed it so you need to put a bit of thought into this.

Each row, each column and the two diagonals are the equivalent of a poker hand. Your goal is to place the cards in such a way as to produce the best hands possible. Details of scoring are included in the program.

How It Works

6-7 Clear the screen and set the screen and border colours to grey.
8 calls the title page at line 165
9-17 set the variables for the screen locations
19-39 print the cards to the screen
40-58 choose a card at random and print it to the screen
42 checks that if 25 cards have been dealt you go to line 75
59-73 ask you where you wish the card to be placed, and print it there
74 sends you round for the next card
75-154 score the 12 rows. Variable SC = accumulative score, SX = score for each individual row
155-161 print the total score, high score (the maximum is 6,000 - 1,500 or more is excellent) and ask if you require another game
162-164 hold the data for the scoring routine
165-174 are the opening pages, and ask if you require instructions
175-288 instructions on how to play the game

[ When entering the program, the words in square brackets should be replaced by their keyboard equivalent. An S in brackets indicates the shift key, so [ST] means press shift and T together. ]

Keith Hobley