Sub Main()
Dim es
Dim Inizio
Dim Fine
Dim ruote(10)
Dim poste(10)
Dim r
Dim r1
Dim ee
Dim p
Dim clp
Dim n(4)
poste(2) = 1
ee = CInt(InputBox(" Quante estrazioni vuoi controllare ? ",,"100"))
clp = CInt(InputBox(" Per quanti colpi vuoi giocare ? ",,"9"))
Inizio = EstrazioneFin - ee
Fine = EstrazioneFin
co = 0
For es = Inizio To Fine
Messaggio "elab. estr. [" &(es) & "] di " & DataEstrazione(es,1)
Call AvanzamentoElab(Inizio,Fine,es)
'-------------------------------------------
ruote(1) = r
ruote(2) = r1
ruote(3) = 11
For r = 1 To 9
For p = 1 To 5
a = Estratto(es,r,p)
For r1 = r + 1 To 10
b = Estratto(es,r1,p)
If p = 5 Then
c = Estratto(es,r,4)
d = Estratto(es,r1,1)
Else
c = Estratto(es,r,p + 1)
d = Estratto(es,r1,p + 1)
End If
If c = d Then
Exit For
Else If a = Vert(b) Then
'-------------------------------------------
e = ComplAdX(a,90)
f = ComplAdX(b,90)
g = Diametrale(a)
h = Diametrale(b)
n(1) = e
n(2) = f
n(3) = g
n(4) = h
ruote(1) = r
ruote(2) = r1
ruote(3) = 11
co = co + 1
Scrivi String(100,"°") & " Caso n°" & co,1
Scrivi DataEstrazione(es) & " -- " & SiglaRuota(r) & " - " & StringaEstratti(es,r) & "*** " & SiglaRuota(r1) & " - " & StringaEstratti(es,r1) & " ** " & " Previsione : " & n(1) & " - " & n(2) & " - " & n(3) & " - " & n(4),1
Scrivi String(100,"°"),1
ImpostaGiocata 1,n,ruote,poste,clp
Gioca es,1,,1
End If
End If
Next
Next
Next
Next
Scrivi
Scrivi String(100,"*")
ColoreTesto 2
Scrivi" casi trovati : " & co,1
ColoreTesto 0
Scrivi String(100," * ")
TestoInBandaPassante(" Ideato by Parmando listato by Lanfranco60 "),1,3,0
ScriviResoconto
End Sub