codice:
' Se usate L8 o lottodesk, mettere l'Apice (') prima di...Testoinbandapassante
Sub Main()
TestoInBandaPassante "L'AMBO SPIA METTE IN GIOCO 1 AMBATA E UN AMBO SECCO",1,5,1
TestoInBandaPassante "°°°°°°°°°° METODO E LISTATO BY BLACKMORE °°°°°°°°°°",1,5,1
Scrivi
Dim ruota(10)
Dim ruote(1)
Dim amb(2)
Dim ambata(1)
Dim ambo(2)
Dim posta(1)
Dim poste(2)
posta(1) = 1
poste(2) = 1
ruo = CInt(InputBox("RUOTA DI RILEVAMENTO?",,1))
ruo1 = CInt(InputBox("RUOTA DI GIOCO?",,1))
ee = CInt(InputBox("QUANTE ESTRAZIONI VUOI CONTROLLARE?",,1200))
k = CInt(InputBox("INSERISCI I COLPI DI GIOCO",,8))
co = 0
fin = EstrazioneFin
ini = EstrazioneFin - ee
For es = ini To fin
AvanzamentoElab ini,fin,es
For p = 1 To 4
For p1 = p + 1 To 5
a = Estratto(es,ruo,p)
b = Estratto(es,ruo,p1)
ok = 0
If a = 36 And b = 54 Or a = 54 And b = 36 Then
amb(1) = Fuori90(Decina(Estratto(es,NZ_,2)) + Cadenza(Estratto(es,NZ_,2)) + Estratto(es,BA_,5) + 88)
amb(2) = Fuori90(Decina(Estratto(es,VE_,3)) + Cadenza(Estratto(es,VE_,3)) + Estratto(es,MI_,1) + 04)
ok = 1
End If
If a = 01 And b = 02 Or a = 02 And b = 01 Then
amb(1) = Fuori90(DiametraleD(Estratto(es,BA_,1)) + Estratto(es,VE_,2) + 03)
amb(2) = Fuori90(Vert(Estratto(es,FI_,2)) + Estratto(es,BA_,1) + 02)
ok = 1
End If
If a = 01 And b = 15 Or a = 15 And b = 01 Then
amb(1) = Fuori90(DiametraleD(Estratto(es,PA_,1)) + Estratto(es,RO_,1) + 22)
amb(2) = Fuori90(Vert(Estratto(es,FI_,1)) + Estratto(es,BA_,1) + 01)
ok = 1
End If
If a = 01 And b = 60 Or a = 60 And b = 01 Then
amb(1) = Fuori90(DiametraleD(Estratto(es,MI_,5)) + Estratto(es,RO_,3) + 13)
amb(2) = Fuori90(Decina(Estratto(es,GE_,5)) + Estratto(es,PA_,3) + 74)
ok = 1
End If
If a = 02 And b = 48 Or a = 48 And b = 02 Then
amb(1) = Fuori90(Cadenza(Estratto(es,PA_,3)) + Estratto(es,GE_,2) + 53)
amb(2) = Fuori90(Decina(Estratto(es,GE_,4)) + Cadenza(Estratto(es,GE_,4)) + Estratto(es,NA_,1) + 03)
ok = 1
End If
If a = 03 And b = 14 Or a = 14 And b = 03 Then
amb(1) = Fuori90(Vert(Estratto(es,VE_,2)) + Estratto(es,PA_,2) + 81)
amb(2) = Fuori90(90 -(Estratto(es,FI_,3)) + Estratto(es,NZ_,4) + 01)
ok = 1
End If
If a = 03 And b = 62 Or a = 62 And b = 03 Then
amb(1) = Fuori90(Cadenza(Estratto(es,TO_,4)) + Estratto(es,TO_,3) + 42)
amb(2) = Fuori90(Diametrale(Estratto(es,MI_,3)) + Estratto(es,VE_,2) + 03)
ok = 1
End If
If a = 22 And b = 57 Or a = 57 And b = 22 Then
amb(1) = Fuori90(Decina(Estratto(es,NA_,1)) + Cadenza(Estratto(es,NA_,1)) + Estratto(es,VE_,2) + 53)
amb(2) = Fuori90(90 -(Estratto(es,MI_,3)) + Estratto(es,CA_,2) + 01)
ok = 1
End If
If a = 17 And b = 52 Or a = 52 And b = 17 Then
amb(1) = Fuori90(Estratto(es,CA_,2) + Estratto(es,FI_,1) + 16)
amb(2) = Fuori90(90 -(Estratto(es,TO_,5)) + Estratto(es,BA_,1) + 46)
ok = 1
End If
If a = 09 And b = 28 Or a = 28 And b = 09 Then
amb(1) = Fuori90(90 -(Estratto(es,PA_,3)) + Estratto(es,NZ_,5) + 01)
amb(2) = Fuori90(Cadenza(Estratto(es,VE_,2)) + Decina(Estratto(es,VE_,2)) + Estratto(es,GE_,3) + 66)
ok = 1
End If
If a = 35 And b = 52 Or a = 52 And b = 35 Then
amb(1) = Fuori90(Diametrale(Estratto(es,FI_,2)) + Estratto(es,BA_,3) + 15)
amb(2) = Fuori90(Cadenza(Estratto(es,PA_,2)) + Estratto(es,MI_,5) + 02)
ok = 1
End If
If a = 44 And b = 65 Or a = 65 And b = 44 Then
amb(1) = Fuori90(DiametraleD(Estratto(es,NA_,4)) + Estratto(es,NA_,5) + 13)
amb(2) = Fuori90(Cadenza(Estratto(es,RO_,2)) + Decina(Estratto(es,RO_,2)) + 01)
ok = 1
End If
If a = 76 And b = 81 Or a = 81 And b = 76 Then
amb(1) = Fuori90(Estratto(es,CA_,1) + Estratto(es,PA_,5) + 08)
amb(2) = Fuori90(Cadenza(Estratto(es,TO_,3)) + Estratto(es,MI_,5) + 01)
ok = 1
End If
If a = 30 And b = 34 Or a = 34 And b = 30 Then
amb(1) = Fuori90(90 -(Estratto(es,RO_,3)) + Estratto(es,MI_,5) + 32)
amb(2) = Fuori90(Estratto(es,BA_,2) + Estratto(es,GE_,2) + 02)
ok = 1
End If
If a = 46 And b = 82 Or a = 82 And b = 46 Then
amb(1) = Fuori90(Estratto(es,RO_,1) + Estratto(es,RO_,1) + 12)
amb(2) = Fuori90(Estratto(es,VE_,4) + Estratto(es,RO_,3) + 27)
ok = 1
End If
If a = 38 And b = 63 Or a = 63 And b = 38 Then
amb(1) = Fuori90(Decina(Estratto(es,TO_,4)) + Cadenza(Estratto(es,TO_,4)) + Estratto(es,RO_,2) + 14)
amb(2) = Fuori90(DiametraleD(Estratto(es,VE_,3)) + Estratto(es,RO_,4) + 04)
ok = 1
End If
If a = 24 And b = 90 Or a = 90 And b = 24 Then
amb(1) = Fuori90(Decina(Estratto(es,MI_,5)) + Cadenza(Estratto(es,MI_,5)) + Estratto(es,MI_,3) + 78)
amb(2) = Fuori90(Vert(Estratto(es,TO_,2)) + Estratto(es,FI_,5) + 29)
ok = 1
End If
If a = 47 And b = 72 Or a = 72 And b = 47 Then
amb(1) = Fuori90(Decina(Estratto(es,FI_,3)) + Estratto(es,FI_,2) + 16)
amb(2) = Fuori90(Cadenza(Estratto(es,BA_,4)) + Estratto(es,FI_,4) + 01)
ok = 1
End If
If a = 18 And b = 90 Or a = 90 And b = 18 Then
amb(1) = Fuori90(DiametraleD(Estratto(es,VE_,1)) + Estratto(es,NA_,3) + 18)
amb(2) = Fuori90(Decina(Estratto(es,FI_,3)) + Estratto(es,NA_,4) + 27)
ok = 1
End If
If a = 37 And b = 70 Or a = 70 And b = 37 Then
amb(1) = Fuori90(90 -(Estratto(es,MI_,3)) + Estratto(es,RO_,1) + 53)
amb(2) = Fuori90(Decina(Estratto(es,FI_,3)) + Estratto(es,PA_,1) + 04)
ok = 1
End If
If a = 66 And b = 89 Or a = 89 And b = 66 Then
amb(1) = Fuori90(Figura(Estratto(es,NA_,3)) + Estratto(es,TO_,5) + 88)
amb(2) = Fuori90(90 -(Estratto(es,CA_,1)) + Estratto(es,NZ_,4) + 01)
ok = 1
End If
If a = 23 And b = 90 Or a = 90 And b = 23 Then
amb(1) = Fuori90(Cadenza(Estratto(es,RO_,3)) + Estratto(es,VE_,4) + 13)
amb(2) = Fuori90(Estratto(es,CA_,5) + Estratto(es,GE_,3) + 01)
ok = 1
End If
If a = 64 And b = 69 Or a = 69 And b = 64 Then
amb(1) = Fuori90(Figura(Estratto(es,RO_,1)) + Estratto(es,VE_,5) + 12)
amb(2) = Fuori90(Figura(Estratto(es,CA_,5)) + Estratto(es,CA_,1) + 22)
ok = 1
End If
If a = 22 And b = 58 Or a = 58 And b = 22 Then
amb(1) = Fuori90(90 -(Estratto(es,BA_,4)) + Estratto(es,VE_,4) + 08)
amb(2) = Fuori90(Cadenza(Estratto(es,RO_,2)) + Estratto(es,FI_,4) + 01)
ok = 1
End If
If a = 51 And b = 71 Or a = 71 And b = 51 Then
amb(1) = Fuori90(Estratto(es,NA_,4) + Estratto(es,RO_,4) + 27)
amb(2) = Fuori90(Diametrale(Estratto(es,BA_,3)) + Estratto(es,FI_,5) + 14)
ok = 1
End If
If a = 33 And b = 43 Or a = 43 And b = 33 Then
amb(1) = Fuori90(Figura(Estratto(es,NA_,1)) + Estratto(es,TO_,1) + 57)
amb(2) = Fuori90(Vert(Estratto(es,NA_,2)) + Estratto(es,GE_,3) + 02)
ok = 1
End If
If ok = 1 Then
co = co + 1
ColoreTesto 0
Scrivi String(106,"§") & " Caso n°" & co,1
ColoreTesto 1
Scrivi String(20," ") & " " & DataEstrazione(es) & " <> " & SiglaRuota(ruo) & " <> " & StringaEstratti(es,ruo) & " <> AMBO SPIA <> " & a & " - " & b,1
ColoreTesto 0
Scrivi String(106,"§"),1
ruota(1) = ruo1
cg = 0
ambata(1) = amb(1)
cg = cg + 1
ImpostaGiocata cg,ambata,ruota,posta,k
ambo(1) = amb(1)
ambo(2) = amb(2)
cg = cg + 1
ImpostaGiocata cg,ambo,ruota,poste,k,2
Gioca es
End If
Next
Next
Next
ScriviResoconto
End Sub