'https://www.youtube.com/watch?v=zNMY5q00N1c&t=1s
'04-08-2024
Sub Main()
Dim ruote(3),ruota(2),ru1(1),ru2(1)
Dim amb(1),ambo(2),n1(2),n2(2),lg(6)
Dim posta(10),poste(2),poste1(3)
poste(2) = 1
poste1(2) = 1:poste1(3) = 1
Scrivi
Scrivi String(20," ") & "********* ESTRANEO BY BADESSA LOTTO ******",1
ColoreTesto 2
ColoreTesto 0
t = 0
rs = InputBox("Quante estrazioni vuoi controllare?",,70)
cl = InputBox("Quanti colpi vuoi controllare?",,13)
ini = EstrazioneFin - rs '9708'
fine = EstrazioneFin ''9808' ESEMPI
For es = ini To fine
Messaggio "Estrazione esaminata: " & CStr(es)
For r1 = 1 To 11
If r1=11 Then r1=12
For p1 = 1 To 4
a1 = Estratto(es-1,r1,p1)
For p2 = p1 + 1 To 5
a2 = Estratto(es-1,r1,p2)
For p3 = 1 To 4 : b1 = Estratto(es,r1,p3)
For p4 = p3 + 1 To 5: b2 = Estratto(es,r1,p4)
If a1=DiametraleD(a2) And b1=DiametraleD(b2)Then
dis1=Distanza(a1,b1)
dis2=Distanza(a2,b2)
dis3=Distanza(a1,b2)
dis4=Distanza(a2,b1)
If dis1=dis2 or dis3=dis4 Then
If dis1=dis2 Then soc=dis1
If dis3=dis4 Then soc=dis3
If Cadenza(soc)>4 Then amb1 = Fuori90(soc+5)
If Cadenza(soc)<5 Then amb1 = Fuori90(90+soc-5)
amb2=DiametraleD(amb1)
amb3=Vert(amb1)
amb4=Vert(amb2)
'Previsione
ruota(1) = r1 : ruota(2) = r2
ruote(1) = r1 : ruote(2) = r2 :ruote(3) = 11
t = t + 1
Scrivi "-------------------------------------------------------------------------------------------------------------",1
ColoreTesto 0
Scrivi DataEstrazione(es-1) & " / " & es-1 & " " & SiglaRuota(r1) & " " & StringaEstratti(es-1,r1) & " [" & Format2(a1) & "." & Format2(a2) & "]" & _
" Pos. " & p1 & "^ " & p2 ,1
Scrivi DataEstrazione(es) & " / " & es & " " & SiglaRuota(r1) & " " & StringaEstratti(es,r1) & " [" & Format2(b1) & "." & Format2(b2) & "]" & _
" Pos. " & p3 & "^ " & p4 ,1
ColoreTesto 0
Erase posta
posta(1) = 1
posta(p3+5) = 1
posta(p4+5) = 1
amb(1) = amb1
ImpostaGiocata 1,amb,ruota,posta,cl
ambo(1) = amb1
ambo(2) = amb2
ImpostaGiocata 2,ambo,ruote,poste,cl
ambo(1) = amb1
ambo(2) = amb3
ImpostaGiocata 3,ambo,ruote,poste,cl
ambo(1) = amb1
ambo(2) = amb4
ImpostaGiocata 4,ambo,ruote,poste,cl
lg(1)= amb1
lg(2)= amb2
lg(3)= amb3
lg(4)= amb4
ImpostaGiocata 4,lg,ruote,poste1,cl
Gioca es
End If
End If
Next
Next
Next
Next
Next
Next
ScriviResoconto
End Sub