CODICE
Sub main()
Dim nu(3),nu1(4),nu2(4),ruote(2),ruota(1),posta(1),poste(4)
posta(1)=5:poste(2)=3:poste(3)=3:poste(4)=3
ce=InputBox("da quale estrazione vuoi controllare? ","estrazione",8236) '8144
k=InputBox ("per quanti colpi?","colpi di gioco",14)
ini=ce
fin=EstrazioneFin
Scrivi "l'ambo vertibile e i -1 +1 di occhidigiada58 (script by maxma62)",1
Scrivi String(76,"=")
Scrivi "Resoconto da "&DataEstrazione(ini,1)&" a "&_
DataEstrazione(fin,1)&" ("&(fin-ce)&" estr.)",1
For es=ini To EstrazioneFin
Messaggio "elab. estr. ["&(es)&"] di "&DataEstrazione(es,1)
For r1=1 To 12
If r1=11 Then r1=12
For p1=1 To 4
For p2=p1+1 To 5
a=Estratto(es,r1,p1):b=Estratto(es,r1,p2)
If a=Vert(b) Then
cn=0
For xx=1 To 5
u=Estratto (es,r1,xx)
If u<>a And u<>b Then
cn=cn+1
nu(cn)=u
End If
Next
n1=Fuori90(nu(1)+1)
n2=(nu(1)-1)
If n2=0 Then n2=90
n3=Fuori90(nu(2)+1)
n4=(nu(2)-1)
If n4=0 Then n4=90
n5=Fuori90(nu(3)+1)
n6=(nu(3)-1)
If n6=0 Then n6=90
For r2=1 To 12
If r2=11 Then r2=12
If r1<>r2 Then
For p3=1 To 5
c=Estratto(es,r2,p3)
If c=n1 Or c=n2 Or c=n3 Or c=n4 Or c=n5 Or c=n6 Then
If p1=p3 Or p2=p3 Then 'iso
If c=nu(1)+1 Or c=nu(2)+1 Or c=nu(3)+1 Then n7=Fuori90(a+1):n8=Fuori90(b+1) 'ambate
If c=nu(1)-1 Or c=nu(2)-1 Or c=nu(3)-1 Then n7=Abs(a-1):n8=Abs(b-1)'ambate
casi=casi+1:Scrivi String(58,"=")&" script by maxma62",1
Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r1)& " - "&StringaEstratti(es,r1)&_
" ] [ "&format2(a)&"."&format2(b)&" ] in "&(p1)&"^/"&(p2)&"^ pos."
Scrivi "numeri rimanenti [ "&format2(nu(1))&"."&format2(nu(2))&"."&format2(nu(3))&" ]"
Scrivi "numeri +1 [ "&format2(n1)&"."&format2(n3)&"."&format2(n5)&" ]"
Scrivi "numeri -1 [ "&format2(n2)&"."&format2(n4)&"."&format2(n6)&" ]"
Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r2)& " - "&StringaEstratti(es,r2)&_
" ] trovato [ "&format2(c)&" ] in "&(p3)&"^ pos."
Scrivi String(63,"-")&" caso n° " & casi
ruote(1)=r1:ruote(2)=r2:ruota(1)=11:co=0
nu1(1)=n7:nu1(2)=n8
co=co+1
ImpostaGiocata co,nu1,ruote,posta,k
nu2(1)=n7:nu2(2)=n8
nu2(3)=a:nu2(4)=b
co=co+1
ImpostaGiocata co,nu2,ruote,poste,k
Gioca es
End If
End If 'iso
Next
End If
Next
End If
Next:Next
Next:Next
Scrivi String(58,"=")&" script by maxma62",1
ScriviResoconto
Scrivi "l'ambo vertibile e i -1 +1 di occhidigiada58 (script by maxma62)",1
End Sub