Simon Capp of Southport, Merseyside, ts the man responsible for this listing. It appears in this article as it is neat, simple-to-follow and, at the end of the day, is fun to use. It's mam function will be to show you how to improve and develop your programming techniques. Card trick is going to be pulled apart and areas of it cordoned off. Each section is going to be explamed: what it does, why does it do it. why it is of particular merit, and how it can be improved.
I'm sure the first thing you'll want to know is what does it do? Simon claims it to be "a world first" on the computer. As the title suggests it is a computerized card trick - something Mr Daniels revels in doing. The initial screen shows several rows of playing cards. You must choose one, taking pains not to reveal its identity to the computer. You've row chosen the card. Tell the computer which row it's in. Your Amstrad will then proceed to shuffie the cards. dispaying them in rows when finished. Again you must inform Arnold in which row your card now appears. This will happen several times, after which your CPC will delight in telling you the card you picked.
It s unportant to keep track of what the program does, when it was written and by wohm. There is no better way of doing this than by putting the lot in Remark statements. Placing a REM in a Basic line will cause the computer to ignore the rest of the line. Anything can be placed after a REM except for "|" Basic 1.0 (one of Locomotive Basic's few bugs odd things occur). Enough! We are straying.Amstrad Basic has two ways of labelling these comment lines: REM and a simple apostrophe , "'" (which shares a key with "7" . They both do the same job. The only difference is that one takes a third the time to type in.