Cards'O'Rama 1.0 by Werther Pirani WARNING: Cards'O'Rama and its code are freely distributable as long as this notice and this file are retained in the same distribution disk. Anyway, Cards'O'Rama and its code cannot be sold for profit or included in any commercial program or publication without the written consent of the author. Cards'O'Rama is written by Werther Pirani. January 29, 1989 INTRODUCTION: I decided to learn C programming just a few months ago and after a couple of good books on the subject, I purchased some Amiga specific books and so I was ready to begin to work on simple exercises. SYBEX's "Programmer's Guide To The Amiga" by Robert A. Peck provided the first informations and the manuals in the Addison's Technical Reference Series came shortly afterward. Now I've just finished my first complete program and though it's one more exercise, it's fully compatible with Intuition and uses menus, requesters and gadgets, so I've decided to release it in the Public Domain. CARDS'O'RAMA: Have you got a photographic memory? Well with Cards'O'Rama you can test it or, at least, improve it! In fact Cards'O'Rama is a simple game that let's you push your memory and it's played with a deck of 32 cards grouped in 16 pairs. Though each pair is totally different from the other for the colors and the patterns being used, sometimes you can get a little bit confused... The cards are shuffled and then displayed at the beginning of each game: watch them carefully and try to remember their position 'cause after a while the only thing you'll see will be their deck. Your goal is to pick up more pairs as you can, until there are no cards left on the screen. The game it's easy to play and very user friendly, so I guess there's no need to say something more, except for a pairs of things: 1) Moving first is much better, so the Amiga picks up randomly the first player. If you play against the Amiga you are always the blue player and it's (she's?) always the yellow player. If you play in two players mode, decide by yourself who's gonna be the blue player and who's gonna be the yellow player. 2) You score 1000 points for each pair but if you can pick more than a pair without making mistakes, this bonus it's increased by 1000 points (i. e. 1000 points for the first pair, 2000 for the second, 3000 for the third and so forth). HOW TO RUN CARDS'O'RAMA: Cards'O'Rama can be run either from the CLI or from the Workbench: - from the CLI type: Cards'O'Rama; - from the Workbench double click on its icon; CARDS'O'RAMA MENUS: When Cards'O'Rama is running press the right mouse button to display the menu bar and its four menus: Program, Game, Level and Opponent. This is a brief description of each menu and its items. Program ------- Thanks Try it and see it! About Just for your information... Exit Exit Cards'O'Rama (a requester let you reconsider) Game ---- Start Begin a new game (See the Level and the Opponent menus) Peek If you peek, the remaining cards are briefly redisplayed and then are covered once again. This might refresh your memory and... the opponent's memory too (Amiga included!) so you better use it this one sparingly. By the way, you can't peek while your score is zero and you can't peek more than three times. A requester tells you something more... Quit If you're not satisfied with the going of the game, you can quit it and Start a new one. A requester let you reconsider. Level This items set how long the cards are displayed at the ---- beginning of the game, how long the cards are displayed when you peek and, if you play against the Amiga, how strong is its memory. Easy Display Time: 30 secs. Peek Time: 18 secs. Memory: ??? Normal Display Time: 24 secs. Peek Time: 12 secs. Memory: ??? Strong Display Time: 18 secs. Peek Time: 6 secs. Memory: ??? Opponent -------- Amiga The Amiga plays always as the yellow player Human Sure! Your opponent can be a friend, a brother or whoever wants to test his or her memory... FUTURE ENHANCEMENTS: Though Cards'O'Rama it's not a MASTERPIECE you could enjoy it and perhaps you would like to see it improved, so let me know... No, I'm not asking for money, I'm simply asking for a feedback! If there are certain features I've haven't included, features you would like to see in Cards'O'Rama, drop me a line. If I see a minimum of interest in it, I'll release a new version of Cards'O'Rama as soon as possible and, of course, I'll put it in the Public Domain. So feel free to contact me at the following address: Werther Pirani Via Mario Torresi, 74 60128 Ancona ITALY TO THE PROGRAMMERS: The "Sources" directory contains all the sources plus About_These_Files, a small text file that gives you some extra informations. Thanks, Werther Pirani