Here’s another free sample software review–a program directly from New England Software‘s tape. Try it out and see for yourself.
Part of a package available for $10 on tape from the address below, Slot Machine runs in 1K, no small feat for a game with its features. The display could be more elaborate, but only at tremendous memory expense. If you have just 1K on your 8K machine, you’ll be surprised at what it can do.–AZ
This program simulates a dollar slot machine. RUN the program to start; to exit enter a double letter such as ZZ instead of a bet. Enter your bet each time. The computer displays each window in succession in SLOW. Six different symbols are used. Payoffs are:
[graphic]--2 to 1 [graphic][graphic]--5 to 1 3 of a kind--20 to 1
Rather than giving you money (who gives away money these days?) the computer starts you at $0 and tracks wins and losses. The program is set to pay back 95% of all money entered, so sometimes you win and sometimes you lose.
In lines 35, 45 and 50, use keywords TO or AT. In subroutine 400 a FOR-NEXT loop is used instead of PAUSE to prevent screen flicker. To save valuable memory in 1K, nearly all numbers are expressed in terms of D, E and F (already defined variables).
Here’s a neat trick to save memory. If you use a number several times in your program, replace it with a defined variable. For example, if you use 1 several times, enter a line LET A=1. Use A in place of 1 throughout your program, A-A in place of 0, A+A in place of 2. You may be surprised at how much memory you save.
Bob Ferguson, New England Software, Box 691, Hyannis, MA 02601
5 LET E=2
10 LET F=3
15 LET M=E-E
20 RAND
25 LET D=RND*E
30 IF D>=F-E THEN PRINT "TRY YOUR LUCK"
35 IF D<F-E THEN PRINT "PAY ME TO WIN"
40 LET D=20
45 PRINT "NOW AT $";M
50 PRINT "PLAY $1 TO $5"
60 INPUT B
70 IF B<F-E OR B>E+F THEN GOTO D*F
80 PRINT AT E-E,E-E;"[graphics]"
90 PRINT "[graphics]"
100 PRINT "[graphics]"
110 PRINT "[spaces]"
120 PRINT "[spaces]"
130 PRINT "[spaces]"
140 PRINT AT F-E,E;
150 GOSUB D*D
160 LET X=A
170 PRINT TAB E*F;
180 GOSUB D*D
190 LET Y=A
200 PRINT TAB D/E;
210 GOSUB D*D
220 LET Z=A
230 PRINT AT F,E-E;
240 LET M=M-B
250 IF X<>F THEN IF X<>Y OR X<>Z THEN GOTO D
260 PRINT "YOU WIN $";
270 LET C=E
280 IF Y=F THEN LET C=E+F
290 IF X=Y AND X=Z THEN LET C=D
300 LET M=M+C*B
310 PRINT C*B
320 GOTO D+D
400 LET A=INT (RND*(E*F))
410 FOR Z=E-E TO 55
420 NEXT Z
430 PRINT CHR$ (128+A*E);
440 RETURN
SYNTACTIC SUM: 39186, 8K
(Line 80-all graphics space,7,7,7, space,etc. Line 90-graphics space, 3 normal spaces, etc. Line 100-all graphics space,6,6,6,space,etc.)

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.