Computer Bingo Caller (BINGO.BAS)
Computer Bingo Caller by James Perone, 13
Description
Computer Bingo Caller by James Perone, 13
From the Antic disk of January 1986 (Vol. 4 No. 9).
From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.
What is in this file
Atari BASIC program · 1.4 KB
- Dialect
- Atari BASIC
- Lines
- 36
- Variables
GAM(,ASK$,BINGO$,Z,COUNT,X,NUMB,L,P
BASIC listing (36 lines)
1 REM COMPUTER BINGO CALLER
2 REM BY JAMES PERONE
3 REM (c) 1985, ANTIC PUBLISHING INC.
5 GRAPHICS 0:DIM GAM(75),ASK$(1),BINGO$(1)
10 POKE 710,68:POKE 712,148:POKE 709,12:FOR Z=1 TO 10
15 POSITION Z,Z
20 ? "◣COMPUTER BINGO CALLER◣"
25 NEXT Z:?
30 ? ," by James Perone";
35 COUNT=0
40 FOR X=1 TO 1000:NEXT X
50 FOR X=1 TO 75:GAM(X)=0:NEXT X
190 COUNT=COUNT+1:IF COUNT>75 THEN RUN
200 NUMB=INT(RND(0)*75)+1
220 IF NUMB=GAM(NUMB) THEN 200
230 GAM(NUMB)=NUMB
900 IF NUMB>0 AND NUMB<16 THEN GOSUB 3000
910 IF NUMB>15 AND NUMB<31 THEN GOSUB 3010
920 IF NUMB>30 AND NUMB<46 THEN GOSUB 3020
930 IF NUMB>45 AND NUMB<61 THEN GOSUB 3030
940 IF NUMB>60 AND NUMB<76 THEN GOSUB 3040
990 IF COUNT=1 THEN 1000
992 IF COUNT>1 THEN 1005
997 POSITION 0,21:? "Would you like a new number ":INPUT ASK$:IF ASK$="Y" THEN 190
998 POSITION 0,21:? "Would you like to play another game ":INPUT ASK$:IF ASK$="Y" THEN RUN
999 GRAPHICS 0:END
1000 ? "↰ ";"B";" ";"I";" ";"N";" ";"G";" ";"O"
1005 POSITION 0,20:? " "
1010 POSITION 0,20:? "The next number is: ";BINGO$;NUMB
1100 POSITION L,P:PRINT NUMB
1500 GOTO 997
3000 L=9:P=NUMB+1:BINGO$="B":RETURN
3010 L=13:P=NUMB-14:BINGO$="I":RETURN
3020 L=17:P=NUMB-29:BINGO$="N":RETURN
3030 L=21:P=NUMB-44:BINGO$="G":RETURN
3040 L=25:P=NUMB-59:BINGO$="O":RETURN
