" return res } function writeq () { if (test) { alert('writeq') } document.write(headerpq) document.write("
") document.write("
") k=0 res="" for (i=0;i<8;i++) { for (j=0;j<8;j++) { writeoneimage( "image"+k, 32, 32, 0) k++ } document.write( "
" ) } document.write("
") return true } function dorotateboard () { if (bottomcolor == whitebottom) { bottomcolor = blackbottom } else { bottomcolor = whitebottom } putq(getone(qs,offset)) } function isquestiontoask(qq,aa) { if (aa=="") {return false} if (bshowifwhite && qq.charAt(64) == ">") { return true } if (bshowifblack && qq.charAt(64) == "<") { return true } return false } function writea () { //if (test) { alert('writea') } document.write(headerpa) document.write("
") writeonetextarea( '', '', 6, 50 ) return true } function putq (bb) { // e.g. bb = "r1bqkbnr;pppp1ppp;2n5;1B2p4;4P3;5N2;PPPP1PPP;RNBQKB1R;>" aa=forsythtoplain(bb) // alert (bb+'\n'+aa) // e.g. aa = "rxbqkbnr;ppppxppp;xxnxxxxx;xBxxpxxxx;" // +"xxxxPxxx;xxxxxNxx;PPPPxPPP;RNBQKBxR;>" if (iswhitesturn(aa)){ bottomcolor = whitebottom } else { bottomcolor = blackbottom } thelen=aa.length if (test) { alert (aa + ": " + thelen) } for (i=0;i" ) document.writeln ( "

"+thetitle+"

" ) // if (test) { alert('writeform0: whichway ') } // writewhichwayradio(wwqval,"whichway=wwqfirst") // writewhichwayradio(wwxval,"whichway=wwxfirst") // writewhichwayradio(wwaval,"whichway=wwafirst") // document.form0.whichwayradio[0].checked = true writeonebutton( helpbval, 'alert (helpline)' ) writeonebutton ( randombval, "dorandomize()" ) writeonebutton ( randomnotbval, "dorandomizenot()" ) // control buttons (which regulate number of questions considered) // writeonebutton ( veryeasybval, veryeasybonclick ) // writeonebutton ( easybval, easybonclick ) // writeonebutton ( hardbval, hardbonclick ) // writeonebutton ( hardbval1, hardbonclick1 ) // writeonebutton ( megahardbval, megahardbonclick ) // writeonebutton ( rotateboardval, "dorotateboard()" ) // writeonebutton ( showifwhitetomoveval, "showifwhite()" ) // writeonebutton ( showifblacktomoveval, "showifblack()" ) // writeonebutton ( showifanytomoveval, "showifany()" ) // document.writeln ( "
" ) if (test) { alert('writeform0: table ') } document.writeln ( "" ) document.writeln ( "" ) document.writeln ( "" ) document.writeln ( "
" ) writeq () document.writeln ( "
" + whoseturnval ) writeoneimage ( "image"+"64", 32, 32, 0) document.writeln ( "
" ) document.writeln ( "

" ) writea () document.writeln ( "

" ) writeonebutton ( showbval, "doshow()" ) document.writeln ( "
" ) writeoneradio ( knewbval, "radio_selection=didknowval" ) writeoneradio ( knewnotbval, "radio_selection=didknownotval" ) document.writeln ( "
" ) writeonebutton ( nextbval, "donext()" ) writeonebutton ( stopbval, "dostop()" ) document.writeln ( "

" ) document.writeln ( "

" ) document.writeln ( "" ) radio_selection="" return true } var testingmoves = istestingmoves var randomizeit = mustrandomizeit //-------------- // alert (' writehead & -body ') writehead() writebody() // alert (' writecounter ' ) // writecounter(113749) // alert (' writeform0 ' ) writeform0() // test = true bb = initpos() // bb = "rn11k1nr;888888;RN11K1NR" setboard(forsythtoplain( bb )) // whitemovesfirst = 1 thename = "Startstillingen" thename = "" // initwpieces("T","S","L","D","K") // test = true firstiq() // alert ( 'GENNEM firstiq' ) test = false // test = true secondiq_q() // alert ( 'GENNEM secondiq' ) test = false rememberquestions() if (false) { } else if (mustshowifwhite) { showifwhite() } else if (mustshowifblack) { showifblack() } else { showifany() } // alert (' kalder setmax(5) ' ) setmax(absmax) // alert (' writelinks' ) writelinks() //test=true if (test) { alert (qsval) } putq(qsval) reseta() //alert ('hej med dig igen, du der') // -->

Opdateret d. 27.4.2000

Hosted by www.Geocities.ws

1