Cribbage is an excellent card game, comprising equal skill and luck, for two players. If you are not familiar with it, "potted" rules are included in the program. This version complies with the rules for six card cribbage published in the 'Penguin book of card games'. The skill is in selecting the 'box' and in the play. I have played cribbage for about thirty years and I can beat the 'expert' computer level about three times out of five. The computer does NOT cheat at all in this game. HOW THE PROGRAM WORKS Each subroutine has an introductory REM line to explain its purpose. The program consists of arrays, loops, GOSUBS and GOTO'S: inevitably it hops around a lot as there are many different possible orders of play that have to be catered for. Arrays of less than 10 variables have not been specifically DIMensioned. As the program is 36k long variables have on occasion been reused with different meanings at different points of play. Any variable beginning with a refers to computer's hand, with y to your (ie - player's) hand and with x to temporary cards and loops used for both hands. TAU
|