Ladders Ladders by M Savin from ZX Computing Feb/Mar.1984 *NOTE* This program was full of errors & didn't work properly atall. Alterations are marked in . [JimG] 1:1000  a=5  j=10 ub(j):p(j): Need a 2nd array to record the player's assigned positions for each number. [JimG] 7:7: 0,a;" " m=12 v=019 23609,255 v,a-1;"" v a=12  v=0 m  a=5 Pl=1:n=19 :l,a-1;142;"":l=l+2:n  2 2,a;" "  3 [w=9 :q=0:u=110 :q,a-3;w;"_":q=q+2:w=w-1:u 4,a;" "  4 (6,a;" " ) 5 28,a;" " 3 6 <10 ,a;" " = 0 F12 ,a;" " G 1 P14,a;" " Q 2 Z16,a;" " [ 3 d18,a;" " e y=0 ix=09 nb(j)=(*98b)+1: I had to change the start from 0 to 1, otherwise it was impossible to tell an unused slot from one which had been assigned 0 by the player. [JimG] s00,20;1;3;"score=";y tj=0200 u y=y+1 x20,0;" ";1;0;b(j);" Y or N?";0;0;" " z*b$=:b$="n"j=j-1:160 {b$="y"126~ |b$="s"200 } 120x 0:20,0;"WHICH BLOCK WOULD YOU LIKE THE";21,0;" NUMBER ";b(j);0;" TO GO IN (0 TO 9)?" 2 a$ *a$1a$<"0"a$>"9"160 5a$="1"16,a;" ";1;b(j):j=j-1 1 5a$="2"14,a;" ";1;b(j):j=j-1 0 5a$="3"12 ,a;" ";1;b(j):j=j-1 >3:a$="0"18,a;" ";1;b(j):j=j-1 6 Ga$="4"10 ,a;" ";0;6;0;b(j):j=j-1 5 =a$="5"8,a;" ";0;5;b(j):j=j-1 4 =a$="6"6,a;" ";0;4;b(j):j=j-1 3 4a$="7"4,a;" ";1;b(j):j=j-1 2 4a$="8"2,a;" ";1;b(j):j=j-1 1 4a$="9"0,a;" ";1;b(j):j=j-1 0 x s=110 b(s)=0170 s .p(a$+1)=b(j+1):y=y+1 x LThis error 'checking' was all rubbish. [JimG]b(1)p(n+1)p(n+1)0169 n 170 :1:10 ,0;"TRY AGAIN; I THINK YOU MADE A MISTAKE!!!":4,-14:0:: Was 10,-14 [JimG] @0:4:3::v=120:.1}L,v:v 2:1:10 ,8;"your score was ";y Ry812 ,10 ;"WELL DONE!!!":g=120:.05|L,g:g 0 E0:20,0;"would you like to play again?":="n" <21,0;"Press Y for 'yes'; N for 'no'":="n" ="y"3 220 m6:0:2::0,2;" M. Savin 1982";1;10 ,10 ;"***LADDERS***" y=110 o=12  .1}L,y  .1}L,o o:y 3,11  7   2 '0,7;"***INSTRUCTIONS***"  0:" The ZX Spectrum will choose ten numbers which you have to place on the ladder in order,the lowest number should be at the bottom of the ladder and the highest at the top.When you see the 'L' press a key from 0-9 and then press the key 'ENTER' which is on the keyboard on the right-hand side.If you get 7 numbers on the ladder you have done very well!!"   1 ,20,5;"Press any key to start" ' 0 ' 0 ' 3