Random picture
Random software
Random demo
Entry name:
 Battle of Numbers 
Publisher/Developer:

Dallas Atari Computer Enthusiasts
(Atari User Group library)
  • Category:

    Games
  • Code:

    Pat McCabe
  • Maximum players:

    1
  • Programming language:

    Atari BASIC
Battle of Numbers Battle of Numbers Battle of Numbers
Listing 1 (Dallas Atari Computer Enthusiasts - )
1REMBATTLEOFNUMBERSBYPATMCCABE(313)791-0946
2?"":?"THEOBJECTOFTHEGAMEISTOENDUPWITHTHELASTOBJECT"
3?:?:?:?
4FORJ=1TO500:NEXTJ:DIMA$(1)
5?"HITRETURNTOCONT.":INPUTA$
10GRAPHICS0:?"*****BATTLEOFNUMBERS*****"
20?"DOYOUWANTTO????":?:?
21?"1,CHOSELIMITS"
22?"2,LETTHECOMPUTERCHOSE"
30INPUTL
40IFL<>1THEN100
50?"NUMBEROFOBJECTSINPILE";
60INPUTN
70?"MAXIMUMNUMBEROFOBJECTSTOBEREMOVED";
80INPUTK
90GOTO120
100N=20+INT(80*RND(0))
110K=5+INT(10*RND(0))
120?"<<<<<INSTRUCTIONS>>>>>>"
130?"NUMBEROFOBJECTSINPILE";N
140?"YOUMAYREMOVEFROM1TO";K;"OBJECTS"
150?"THEPLAYERWHOREMOVESTHELASTOBJECT"
170?"YOURMOVE"
180INPUTX
190IFX>KORX<1THEN220
210IFX<=NTHEN250
220?"ILLEGALMOVE"
240GOTO170
250REM
260N=N-X
270IFN>0THEN350
280?"!!!COMPUTERWINS!!!"
281FORI=1TO100:SOUND3,50,6,8:NEXTI:SOUND3,0,0,0
300?"DOYOUWANTTO"
301?"1,GIVEUP"
302?"2,TRYAGAIN"
310INPUTZ
320IFZ=1THEN540
330?"YOUMUSTBEAGLUTONFORPU"
340GOTO10
350REM
360Q=INT((N-1)/(K+1))
370Y=N-1-Q*(K+1)
380IFY=0THEN460
390N=N-Y
400?"THECOMPUTERREMOVES";Y
410IFN=0THEN520
420?"OBJECTSLEFTINPILE=";N
450GOTO170
460REM
470IFN>1THEN500
480Y=1
490GOTO390
500Y=1+INT(K*RND(0))
510GOTO390
520?"YOUWIN"
521FORI=254TO0STEP-2:J=INT(RND(0)*10+I):SOUND3,J,10,10:NEXTI:SOUND3,0,0,0
530GOTO300
540FORJ=1TO40:?"BETTERLUCKNEXTTIME":?;:NEXTJ
550END	

This is non-commercial site, its content is based on Atari 8-bit home computer contents and references.
If you feel your rights are violated by showing/using any part of contents of your product represented on this page, please contact me immediatelly so I can remove it!