0 Members and 2 Guests are viewing this topic.
.MULTIClrHomeClrDrawClrDrawr0→A→C→D→X→Y56→B[3C7EFFFFFFFFFF7E3C→Pic1J1[3C428181818181423C→Pic1J2Repeat getkey(15) If getkey(2) and (X>0) X-- 1→C ElseIf getkey(3) and (X<88) X++ 2→C Else 0→C End sub(GET) Send(C,500) sub(GET) DispGraphrClrDrawEndClrHomeClrDrawLbl GETGet→DIf D=1 A--ElseIf D=2 A++EndPt-Off(X,Y,Pic1J1Pt-Off(A,B,Pic1J2Return
:.r1 is the number of swap you want to try it work, ussualy 10 is same than 200:Lbl SYN:Output(0,,"Synchronisation ...:0→r2:Repeat r2>r1 or getKey(15):If Get+1:→r2:End:Send(r2,100):End:Returnr2^2
!If B:SRV():Else:CLT():End
:.AXE:[183C7EFFFF7E3C18]→Pic1:0→X:ClrHome:SYN(200)→B:Repeat getKey(15) or (B>1:!If B:SRV():Else:CLT():End:DispGraphClrDraw:End:Return:.Program host:Lbl SRV:If X<96:Pt-On(X,48,Pic1:End:X<192?X++,→X:Send(X,5000):Return:.Program client:Lbl CLT:If X>95:Pt-On(X-96,48,Pic1:End:If Get+1:-1→X:End:Return
:.r1 ==> number of bytes to send:Lbl ECH:SYN(10):For(I,0,r1):!If B:Send({L1+I},5000):GET()→{L2+I}:Else:GET()→{L2+I}:Send({L1+I},10000):End:End:Return::Lbl GET:Repeat Get+1→r2:If getKey(15):Goto ERR:.ERR routine just leave program:End:End:Returnr2-1
I tried it 10 times on each calculator and they said 190 each time. Also, I even have a bad cord and it worked! +1