Novità

Help per script

  • Creatore Discussione Creatore Discussione Y10
  • Data di inizio Data di inizio

Y10

Advanced Member >PLATINUM<
Buonasera , chiedo gentilmente se qualche volenteroso scripter mi può implementare il seguente listato da un mio metodo che al momento da buoni frutti:

Cercare due ambi trasposti dopo di che fare la somma e la differenza tra i numeri del primo ambo a tali numeri aggiungeremo i loro vertibili da mettere in gioco come quartina sulle due ruote di rilevamento per 13 colpi.

Esempio reale:

Estrazione de 2 maggio 2013 abbiamo MI 64.55 TO 65.54 operiamo.

64+55 = 29
64-55 = 09

relativi vertibili 22.90

Esito al secondo colpo 9.90 su MI

Grazie anticipate a chi risponderà.:)
 
Ciao Y10, prova a vedere se è tutto corretto.

Codice:
Sub Main()
 Dim nu1(4)
 Dim ruote(2)
 Dim posta(5)
 posta(2) = 1.5
 posta(3) = 0.5
 fin = EstrazioneFin
 ini = fin - 150
 Scrivi "Ricerca Ambi trasposti su 2 Ruote  **** Metodo by Y10 **** forum Lottoced **** Listed By Mike58 **** ",True,True,2,4,3
 Scrivi
 For es = ini To fin
  Messaggio "Elaboro Estrazioni . . . . . . " & es & "    ***** Script By Mike58 ***** "
  AvanzamentoElab ini,fin,es
  For r1 = 1 To 10
   For p1 = 1 To 4
    For p2 = p1 + 1 To 5
     n1 = Estratto(es,r1,p1)
     n2 = Estratto(es,r1,p2)
     b1 =(n1 & n2)
     For r2 = r1 + 1 To 11
      If r2 = 11 Then r2 = 12
      For p3 = 1 To 4
       For p4 = p3 + 1 To 5
        n3 = Estratto(es,r2,p3)
        n4 = Estratto(es,r2,p4)
        n5 = Trasposizione(n3,n4)
        n6 = Trasposizione(n4,n3)
        b8 =(n5 & n6)
        If n1 > 9 And n2 > 9 And n3 > 9 And n4 > 9 Then
         If Decina(n1) <> Decina(n2) Then
          If Cadenza(n1) <> Cadenza(n2) Then
           If b1 = b8 Then
            casi = casi + 1
            Scrivi String(125,"="),1
            ColoreTesto 1
            Scrivi DataEstrazione(es,1) & " < " & SiglaRuota(r1) & " " & StringaEstratti(es,r1) & _
            " > ambo Trasposto < " & Format2(n1) & "." & Format2(n2) & " >",1
            Scrivi DataEstrazione(es,1) & " < " & SiglaRuota(r2) & " " & StringaEstratti(es,r2) & _
            " > ambo Trasposto < " & Format2(n3) & "." & Format2(n4) & " >",1
            ColoreTesto 0
            Scrivi String(115,"-") & " caso n° " &(casi)
            ruote(1) = r1
            ruote(2) = r2
            k = 14
            co = 0
            b2 = Differenza(n1,n2)
            b3 = Fuori90(n1 + n2)
            nu1(1) = b2
            nu1(2) = b3
            nu1(3) = Vert(b2)
            nu1(4) = Vert(b3)
            co = co + 1
            ImpostaGiocata co,nu1,ruote,posta,k,2
            co = co + 1
            Gioca es,1,,1
           End If
          End If
         End If
        End If
       Next
      Next
     Next
    Next
   Next
  Next
 Next
 ScriviResoconto
End Sub
 
Ciao Mike , hai fatto un superlavoro . Una cosa , se fosse possibile , io per scremare , prenderei solo in esame le estrazioni dove ci sia solamente un ambo trasposto , vedi quella del 2 Maggio , se non fosse possibile , grazie ugualmente. Buona giornata.:)
 
Ciao y10 per ora non riesco a stoppare il conteggio delle estrazioni ,se dovessi riuscirci non mancherò di postarlo.

P.s. Se joe legge il post, magari lui arriva prima alla soluzione scriptica.

Ciao
 
Ciao Ragazzi,

provo a buttare li una soluzione

... ma non avendo provato lo script non ne ho conoscenza e non so se sia giusto cosa ho fatto.

Nel caso non fosse giusto, chiedo scusa anticipatamente.

Codice:
Sub Main()
 Dim nu1(4)
 Dim ruote(2)
 Dim posta(5)
 posta(2) = 1.5
 posta(3) = 0.5
 fin = EstrazioneFin
 ini = fin -200
 Scrivi "Ricerca Ambi trasposti su 2 Ruote  **** Metodo by Y10 **** forum Lottoced **** Listed By Mike58 **** ",True,True,2,4,3
 Scrivi
 For es = ini To fin : Valido = 0
  Messaggio "Elaboro Estrazioni . . . . . . " & es & "    ***** Script By Mike58 ***** "
  AvanzamentoElab ini,fin,es
  For r1 = 1 To 10    
   For p1 = 1 To 4
    For p2 = p1 + 1 To 5
     n1 = Estratto(es,r1,p1)
     n2 = Estratto(es,r1,p2)
     b1 =(n1 & n2)
     For r2 = r1 + 1 To 11
      If r2 = 11 Then r2 = 12
      For p3 = 1 To 4
       For p4 = p3 + 1 To 5
        n3 = Estratto(es,r2,p3)
        n4 = Estratto(es,r2,p4)
        n5 = Trasposizione(n3,n4)
        n6 = Trasposizione(n4,n3)
        b8 =(n5 & n6)
        If n1 > 9 And n2 > 9 And n3 > 9 And n4 > 9 Then
         If Decina(n1) <> Decina(n2) Then
          If Cadenza(n1) <> Cadenza(n2) Then
           If b1 = b8 Then
            casi = casi + 1
            Scrivi String(125,"="),1
            ColoreTesto 1 : Valido = Valido + 1 
            Scrivi DataEstrazione(es,1) & " < " & SiglaRuota(r1) & " " & StringaEstratti(es,r1) & _
            " > ambo Trasposto < " & Format2(n1) & "." & Format2(n2) & " >",1
            Scrivi DataEstrazione(es,1) & " < " & SiglaRuota(r2) & " " & StringaEstratti(es,r2) & _
            " > ambo Trasposto < " & Format2(n3) & "." & Format2(n4) & " >",1
            ColoreTesto 0
            Scrivi String(115,"-") & " caso n° " &(casi)
            ruote(1) = r1
            ruote(2) = r2
            k = 14
            co = 0
            b2 = Differenza(n1,n2)
            b3 = Fuori90(n1 + n2)
            nu1(1) = b2
            nu1(2) = b3
            nu1(3) = Vert(b2)
            nu1(4) = Vert(b3)
            co = co + 1
             ImpostaGiocata co,nu1,ruote,posta,k,2
            co = co + 1
           End If 
          End If
         End If
        End If
       Next
      Next
     Next
    Next
   Next
  Next
   If Valido = 1 Then Gioca es,1,,1
 Next
 ScriviResoconto
End Sub

:)
 
Ciao joe, intanto grazie per aver letto e suggerito una soluzione, sicuramente molto utile.
Sperimentando il suggerimento ho visto che non considerava le estrazioni nelle quali erano presenti + ricerche, mentre l'amico y10 magari voleva mettere in gioco solo la prima trovata nelle estrazioni con + ricerche.

Utilizzando e spostando il codice riga la mia soluzione gioca solo la prima ricerca trovata mentre trova e non rende giocabile le successive.

Ad ogni modo con le dovute accortezze si possono giocare tutte e tre le soluzioni scriptiche.

OTTIMO.... spunto Joe (Professore.... in mancanza del grande maestro Luigi...ahinoi) e ancora grazie.

Ciao

Codice:
Sub Main()
 Dim nu1(4)
 Dim ruote(2)
 Dim posta(5)
 posta(2) = 1.5
 posta(3) = 0.5
estr = InputBox("QUANTE ESTRAZIONI VUOI ? ","ESTRAZIONI",50)
 fin = EstrazioneFin
 ini = fin - estr
 Scrivi "Ricerca Ambi trasposti su 2 Ruote  **** Metodo by Y10 **** forum Lottoced **** Listed By Mike58 **** ",True,True,2,4,3
 Scrivi
 For es = ini To fin : Valido = 0
  Messaggio "Elaboro Estrazioni . . . . . . " & es & "    ***** Script By Mike58 ***** "
  AvanzamentoElab ini,fin,es
  For r1 = 1 To 10    
   For p1 = 1 To 4
    For p2 = p1 + 1 To 5
     n1 = Estratto(es,r1,p1)
     n2 = Estratto(es,r1,p2)
     b1 =(n1 & n2)
     For r2 = r1 + 1 To 11
      If r2 = 11 Then r2 = 12
      For p3 = 1 To 4
       For p4 = p3 + 1 To 5
        n3 = Estratto(es,r2,p3)
        n4 = Estratto(es,r2,p4)
        n5 = Trasposizione(n3,n4)
        n6 = Trasposizione(n4,n3)
        b8 =(n5 & n6)
        If n1 > 9 And n2 > 9 And n3 > 9 And n4 > 9 Then
         If Decina(n1) <> Decina(n2) Then
          If Cadenza(n1) <> Cadenza(n2) Then
           If b1 = b8 Then
            casi = casi + 1
            Scrivi String(125,"="),1
            ColoreTesto 1 : Valido = Valido + 1 
            Scrivi DataEstrazione(es) & " < " & SiglaRuota(r1) & " " & StringaEstratti(es,r1) & _
            " > ambo Trasposto < " & Format2(n1) & "." & Format2(n2) & " >",1
            Scrivi DataEstrazione(es) & " < " & SiglaRuota(r2) & " " & StringaEstratti(es,r2) & _
            " > ambo Trasposto < " & Format2(n3) & "." & Format2(n4) & " >",1
            ColoreTesto 0
            Scrivi String(115,"-") & " caso n° " &(casi)
            ruote(1) = r1
            ruote(2) = r2
            k = 14
            co = 0
            b2 = Differenza(n1,n2)
            b3 = Fuori90(n1 + n2)
            nu1(1) = b2
            nu1(2) = b3
            nu1(3) = Vert(b2)
            nu1(4) = Vert(b3)
            co = co + 1
             ImpostaGiocata co,nu1,ruote,posta,k,2
            co = co + 1
'---------- qui gioca solo la prima previsione trovata ----------------------------
If Valido = 1 Then Gioca es,1,,1
If Valido > 1 Then Scrivi " ***** Previsione non valida ***** ",True,True,2,4,3
'----------------------------------------------------------------------------------

           End If 
          End If
         End If
        End If
       Next
      Next
     Next
    Next
   Next
  Next
'------- qui non gioca nessuna previsione doppia --------------------------------------
'If Valido = 1 Then Gioca es,1,,1
'If Valido > 1 Then Scrivi " ***** Previsione non valida ***** ",True,True,2,4,3
'--------------------------------------------------------------------------------------
If ScriptInterrotto Then Exit For
 Next
 ScriviResoconto
End Sub
 
ambi trasposti

ambi trasposti

Ciao joe, intanto grazie per aver letto e suggerito una soluzione, sicuramente molto utile.
Sperimentando il suggerimento ho visto che non considerava le estrazioni nelle quali erano presenti + ricerche, mentre l'amico y10 magari voleva mettere in gioco solo la prima trovata nelle estrazioni con + ricerche.

Utilizzando e spostando il codice riga la mia soluzione gioca solo la prima ricerca trovata mentre trova e non rende giocabile le successive.

Ad ogni modo con le dovute accortezze si possono giocare tutte e tre le soluzioni scriptiche.

OTTIMO.... spunto Joe (Professore.... in mancanza del grande maestro Luigi...ahinoi) e ancora grazie.

Ciao

Codice:
Sub Main()
 Dim nu1(4)
 Dim ruote(2)
 Dim posta(5)
 posta(2) = 1.5
 posta(3) = 0.5
estr = InputBox("QUANTE ESTRAZIONI VUOI ? ","ESTRAZIONI",50)
 fin = EstrazioneFin
 ini = fin - estr
 Scrivi "Ricerca Ambi trasposti su 2 Ruote  **** Metodo by Y10 **** forum Lottoced **** Listed By Mike58 **** ",True,True,2,4,3
 Scrivi
 For es = ini To fin : Valido = 0
  Messaggio "Elaboro Estrazioni . . . . . . " & es & "    ***** Script By Mike58 ***** "
  AvanzamentoElab ini,fin,es
  For r1 = 1 To 10    
   For p1 = 1 To 4
    For p2 = p1 + 1 To 5
     n1 = Estratto(es,r1,p1)
     n2 = Estratto(es,r1,p2)
     b1 =(n1 & n2)
     For r2 = r1 + 1 To 11
      If r2 = 11 Then r2 = 12
      For p3 = 1 To 4
       For p4 = p3 + 1 To 5
        n3 = Estratto(es,r2,p3)
        n4 = Estratto(es,r2,p4)
        n5 = Trasposizione(n3,n4)
        n6 = Trasposizione(n4,n3)
        b8 =(n5 & n6)
        If n1 > 9 And n2 > 9 And n3 > 9 And n4 > 9 Then
         If Decina(n1) <> Decina(n2) Then
          If Cadenza(n1) <> Cadenza(n2) Then
           If b1 = b8 Then
            casi = casi + 1
            Scrivi String(125,"="),1
            ColoreTesto 1 : Valido = Valido + 1 
            Scrivi DataEstrazione(es) & " < " & SiglaRuota(r1) & " " & StringaEstratti(es,r1) & _
            " > ambo Trasposto < " & Format2(n1) & "." & Format2(n2) & " >",1
            Scrivi DataEstrazione(es) & " < " & SiglaRuota(r2) & " " & StringaEstratti(es,r2) & _
            " > ambo Trasposto < " & Format2(n3) & "." & Format2(n4) & " >",1
            ColoreTesto 0
            Scrivi String(115,"-") & " caso n° " &(casi)
            ruote(1) = r1
            ruote(2) = r2
            k = 14
            co = 0
            b2 = Differenza(n1,n2)
            b3 = Fuori90(n1 + n2)
            nu1(1) = b2
            nu1(2) = b3
            nu1(3) = Vert(b2)
            nu1(4) = Vert(b3)
            co = co + 1
             ImpostaGiocata co,nu1,ruote,posta,k,2
            co = co + 1
'---------- qui gioca solo la prima previsione trovata ----------------------------
If Valido = 1 Then Gioca es,1,,1
If Valido > 1 Then Scrivi " ***** Previsione non valida ***** ",True,True,2,4,3
'----------------------------------------------------------------------------------

           End If 
          End If
         End If
        End If
       Next
      Next
     Next
    Next
   Next
  Next
'------- qui non gioca nessuna previsione doppia --------------------------------------
'If Valido = 1 Then Gioca es,1,,1
'If Valido > 1 Then Scrivi " ***** Previsione non valida ***** ",True,True,2,4,3
'--------------------------------------------------------------------------------------
If ScriptInterrotto Then Exit For
 Next
 ScriviResoconto
End Sub

salve
Gradirei sapere se e' possibile effettuare uno script degli ambi trasposti usciti da una certa data , evidenziando i ritardi attuali e storici x la sorte di ambo sulle ruote di origine e tutte.
 
salve
Gradirei sapere se e' possibile effettuare uno script degli ambi trasposti usciti da una certa data , evidenziando i ritardi attuali e storici x la sorte di ambo sulle ruote di origine e tutte

Ciao Houdini, vediamo quello che è possibile fare.

ciao
 
ciao ragazzi per tutti quelli che ogni tanto mi nominano ancora eccomi qui a farvi un piccolo saluto e un ringraziamento
per l'affetto dimostrato anche negli altri post.
Non è un ritorno attenzione. ... è un passaggio e porto un contributo con la mia versioen di questo script richiesto da y10 e con la modifica (che non so se ho capito bene ) richiesta da hudini.
Un saluto a tutti

Codice:
Option Explicit
Class clsAmbo
	Private aAmbi
	Private IdEstrazione
	Private IdRuota
	Sub GeneraAmbi(idEstr,Ruota)
		IdEstrazione = idEstr
		IdRuota = Ruota
		ReDim aN(0)
		Call GetArrayNumeriRuota(IdEstrazione,IdRuota,aN)
		'Call OrdinaMatrice ( aN ,1)
		If aN(1) > 0 Then
			aAmbi = SviluppoIntegrale(aN,2)
		Else
			ReDim aAmbi(0)
		End If
	End Sub
	Function GetQuantitaAmbi
		GetQuantitaAmbi = UBound(aAmbi)
	End Function
	Function GetAmbo(idAmbo)
		ReDim aN(2)
		aN(1) = aAmbi(idAmbo,1)
		aN(2) = aAmbi(idAmbo,2)
		GetAmbo = aN
	End Function
	Function GetRuota
		GetRuota = IdRuota
	End Function
End Class
Class clsQuartinaAmboTrasposto
	Private aNum(4)
	Public Ruota1
	Public Ruota2
	Public IdEstrazione
	Sub SetNumeri(aNumAmboR1 , aNumAmboR2)
		Dim k
		For k = 1 To 4
			If k <=2 Then
				aNum(k) = aNumAmboR1 (k)
			Else
				aNum(k) = aNumAmboR2 (k-2)
			End If
		Next
		
	End Sub
	Function GetNumeri()
		GetNumeri = aNum
	End Function
	Function GetRuote()
		ReDim aRuote(2)
		aRuote(1) = Ruota1
		aRuote(2) = Ruota2
		GetRuote = aRuote
	End Function
End Class
Sub Main
	Dim idEstr,Ruota
	Dim Inizio,Fine
	Dim r,rr,i,ii
	Dim aNumAmbo,aNumAmboT
	Dim nDiff,nSomma
	ReDim acAmbiRuota(11)
	Dim nCasi
	Dim bQualsiasiDisp
	Dim nCasiParz
	Dim bEseguiGiocate
	Dim bEseguiStatistica
	Dim CollCasiRilevati
	Dim clsQuartina
	Inizio = EstrazioneIni
	Fine = EstrazioneFin
	bQualsiasiDisp = False
	bEseguiGiocate = True
	bEseguiStatistica = True
	nCasi = 0
	Set CollCasiRilevati = GetNewCollection
	
	
	If MsgBox ("Considerare gli ambi trasposti a prescindere dalla disposizione fisica dei numeri usciti ?" , vbQuestion + vbYesNo) = vbYes Then
		bQualsiasiDisp = True
	End If
	
	If MsgBox ("Eseguire la simulazione delle giocate sui casi rilevati ?" , vbQuestion + vbYesNo) = vbNo Then
		bEseguiGiocate = False
	End If
	
	If MsgBox ("Eseguire la statistica sui casi degli ambi trasposti rilevati ?" , vbQuestion + vbYesNo) = vbNo Then
		bEseguiStatistica = False
	End If
	
	For idEstr = Inizio To Fine
		i = 0
		nCasiParz = 0
		' prima genero per ogni ruota tutti gli ambi costituiti dai nuemeri estratti
		For r = 1 To 12
			If r <> 11 Then
				i = i + 1
				Set acAmbiRuota(i) = New clsAmbo
				Call acAmbiRuota(i).GeneraAmbi(idEstr,r)
			End If
		Next
		' poi ricerco gli ambi trasposti tra 2 ruote
		For r = 1 To 10
			For rr = r + 1 To 11
				Call Messaggio("Estrazione : " & idEstr & " confronto ruote : " & SiglaRuota(acAmbiRuota(r).GetRuota) & " --> " & SiglaRuota(acAmbiRuota(rr).GetRuota))
				For i = 1 To acAmbiRuota(r).GetQuantitaAmbi
					aNumAmbo = acAmbiRuota(r).Getambo(i)
					For ii = 1 To acAmbiRuota(rr).GetQuantitaAmbi
						aNumAmboT = acAmbiRuota(rr).Getambo(ii)
						If IsAmboTrasposto(aNumAmbo,aNumAmboT,bQualsiasiDisp) Then
							nDiff = Differenza(aNumAmbo(1),aNumAmbo(2))
							nSomma = Fuori90(aNumAmbo(1) + aNumAmbo(2))
							ReDim aNum(4)
							aNum(1) = nDiff
							aNum(2) = nSomma
							aNum(3) = Vert(nDiff)
							aNum(4) = Vert(nSomma)
							ReDim aRuote(2)
							aRuote(1) = acAmbiRuota(r).GetRuota
							aRuote(2) = acAmbiRuota(rr).GetRuota
							ReDim aPoste(2)
							aPoste(2) = 1
							nCasi = nCasi + 1
							nCasiParz = nCasiParz + 1
							If bEseguiGiocate Then
								Call Scrivi(String(50,"=") & " Caso " & FormatSpace(nCasi,5,True))
								Call Scrivi("Estrazione : " & GetInfoEstrazione(idEstr))
								Call Scrivi("Condizione : " & SiglaRuota(aRuote(1)) & " " & StringaNumeri(aNumAmbo) & " - " & SiglaRuota(aRuote(2)) & " " & StringaNumeri(aNumAmboT))
								Call ImpostaGiocata(nCasi,aNum,aRuote,aPoste,13,2)
								Call Gioca(idEstr)

							End If
							If bEseguiStatistica Then
								Set clsQuartina = New clsQuartinaAmboTrasposto
								clsQuartina.Ruota1 = aRuote(1)
								clsQuartina.Ruota2 = aRuote(2)
								clsQuartina.IdEstrazione = idEstr
								Call clsQuartina.SetNumeri(aNumAmbo ,aNumAmboT )
								CollCasiRilevati.add clsQuartina
							End If
						End If
					Next
				Next
			Next
		Next
		'If nCasiParz > 0 And bEseguiGiocate Then
		'	Call Gioca(idEstr)
		'End If
		Call AvanzamentoElab(Inizio,Fine,idEstr)
		If ScriptInterrotto Then Exit For
	Next
	If bEseguiGiocate Then Call ScriviResoconto
	If bEseguiStatistica Then
		Call StatisticaCasiRilevati(CollCasiRilevati)
	End If
End Sub
Function IsAmboTrasposto(aNumAmbo,aNumAmboT,bQualsiasiDisp)
	Dim b
	b = False
	If aNumAmboT(1) > 0 And aNumAmboT(2) > 0 Then
		If aNumAmboT(1) = Trasposizione(aNumAmbo(1),aNumAmbo(2)) Then
			If aNumAmboT(2) = Trasposizione(aNumAmbo(2),aNumAmbo(1)) Then
				b = True
			End If
		ElseIf aNumAmboT(1) = Trasposizione(aNumAmbo(2),aNumAmbo(1)) Then
			If bQualsiasiDisp Then
				If aNumAmboT(2) = Trasposizione(aNumAmbo(1),aNumAmbo(2)) Then
					b = True
				End If
			End If
		End If
	End If
	IsAmboTrasposto = b
End Function
Sub StatisticaCasiRilevati(CollCasiRilevati)
	Dim clsQuartina
	Dim k
	Dim nEstrTot
	
	nEstrTot = EstrazioniArchivio
	ReDim aTitoli(14)
	ReDim aColSpan(14)
	ReDim aColori(14)
	For k = 1 To 14
		If k >= 1 And k <= 5 Then
			aColori(k) = RGB(255,255,221)
		ElseIf k >= 6 And k <= 8 Then
			aColori(k) = RGB(255,225,255)
		ElseIf k >= 9 And k <= 11 Then
			aColori(k) = RGB(255,191,255)
		ElseIf k >= 12 And k <= 14 Then
			aColori(k) = RGB(255,159,255)
		End If
	Next
	aTitoli(1) = ""
	aTitoli(2) = ""
	aTitoli(3) = ""
	aTitoli(4) = ""
	aTitoli(5) = ""
	aTitoli(6) = "Ruota 1"
	aTitoli(7) = "Ruota 2"
	aTitoli(8) = "Tutte"
	For k = 1 To 5
		aColSpan(k) = 1
	Next
	aColSpan(6) = 3
	aColSpan(7) = 3
	aColSpan(8) = 3
	Call InitTabella(aTitoli,vbBlue,,3,vbWhite,"Courier New",aColSpan)
	aTitoli(1) = "Quartina rilevata"
	aTitoli(2) = "Estrazione di Rilevamento"
	aTitoli(3) = "Ruote Di Rilev."
	aTitoli(4) = "Numeri Estratti Ruota 1"
	aTitoli(5) = "Numeri Estratti Ruota 2"
	aTitoli(6) = "Ritardo"
	aTitoli(7) = "RitardoMax"
	aTitoli(8) = "Frequenza"
	aTitoli(9) = "Ritardo"
	aTitoli(10) = "RitardoMax"
	aTitoli(11) = "Frequenza"
	aTitoli(12) = "Ritardo"
	aTitoli(13) = "RitardoMax"
	aTitoli(14) = "Frequenza"
	Call AddRigaTabella(aTitoli,vbYellow,,,,"Courier New")
	For Each clsQuartina In CollCasiRilevati
		ReDim aValori(14)
		ReDim aEstratti(0)
		aValori(1) = StringaNumeri(clsQuartina.GetNumeri ,,True)
		aValori(2) = GetInfoEstrazione(clsQuartina.IdEstrazione)
		aValori(3) = SiglaRuota(clsQuartina.Ruota1) & " - " & SiglaRuota(clsQuartina.Ruota2)
		Call GetArrayNumeriRuota(clsQuartina.IdEstrazione,clsQuartina.Ruota1,aEstratti)
		aValori(4) = StringaNumeri(aEstratti,,True)
		Call GetArrayNumeriRuota(clsQuartina.IdEstrazione,clsQuartina.Ruota2,aEstratti)
		aValori(5) = StringaNumeri(aEstratti,,True)
		ReDim aRuote(1)
		aRuote(1) = clsQuartina.Ruota1
		Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(6),aValori(7),0,aValori(8),1,nEstrTot)
		aRuote(1) = clsQuartina.Ruota2
		Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(9),aValori(10),0,aValori(11),1,nEstrTot)
		aRuote(1) = TU_
		Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(12),aValori(13),0,aValori(14),1,nEstrTot)
		Call AddRigaTabella(aValori,aColori,,,,"Courier New")
	Next
	Call Scrivi("Statistica nel range di tutte le estrazioni disponibili in archivio da " & GetInfoEstrazione(1) & " a " & GetInfoEstrazione(EstrazioniArchivio))
	Call CreaTabella
End Sub
 
Ultima modifica di un moderatore:
Anche soltanto un attimo ci rendi felici Salute

:D



x LUIGI
Che piacere rivedere un tuo intervento, grazie infinite x lo script richiesto, ottimo in quanto e' uno script che prediligo che ricerca conbinazioni ( senza manipolazioni come x la maggioranza di script ) desunti da estrazioni pregresse .
grazie x quello che hai fatto e farai x il lotto.
ciao
 
Il "solito" capolavoro!!!

(mo, m'ho da studià pure questo)

BRAVISSIMO.

Come va?

:) Ciao GRANDE.
 
ciao ragazzi per tutti quelli che ogni tanto mi nominano ancora eccomi qui a farvi un piccolo saluto e un ringraziamento
per l'affetto dimostrato anche negli altri post.
Non è un ritorno attenzione. ... è un passaggio e porto un contributo con la mia versioen di questo script richiesto da y10 e con la modifica (che non so se ho capito bene ) richiesta da hudini.
Un saluto a tutti

Codice:
Option Explicit
Class clsAmbo
    Private aAmbi
    Private IdEstrazione
    Private IdRuota
    Sub GeneraAmbi(idEstr,Ruota)
        IdEstrazione = idEstr
        IdRuota = Ruota
        ReDim aN(0)
        Call GetArrayNumeriRuota(IdEstrazione,IdRuota,aN)
        'Call OrdinaMatrice ( aN ,1)
        If aN(1) > 0 Then
            aAmbi = SviluppoIntegrale(aN,2)
        Else
            ReDim aAmbi(0)
        End If
    End Sub
    Function GetQuantitaAmbi
        GetQuantitaAmbi = UBound(aAmbi)
    End Function
    Function GetAmbo(idAmbo)
        ReDim aN(2)
        aN(1) = aAmbi(idAmbo,1)
        aN(2) = aAmbi(idAmbo,2)
        GetAmbo = aN
    End Function
    Function GetRuota
        GetRuota = IdRuota
    End Function
End Class
Class clsQuartinaAmboTrasposto
    Private aNum(4)
    Public Ruota1
    Public Ruota2
    Public IdEstrazione
    Sub SetNumeri(aNumAmboR1 , aNumAmboR2)
        Dim k
        For k = 1 To 4
            If k <=2 Then
                aNum(k) = aNumAmboR1 (k)
            Else
                aNum(k) = aNumAmboR2 (k-2)
            End If
        Next
        
    End Sub
    Function GetNumeri()
        GetNumeri = aNum
    End Function
    Function GetRuote()
        ReDim aRuote(2)
        aRuote(1) = Ruota1
        aRuote(2) = Ruota2
        GetRuote = aRuote
    End Function
End Class
Sub Main
    Dim idEstr,Ruota
    Dim Inizio,Fine
    Dim r,rr,i,ii
    Dim aNumAmbo,aNumAmboT
    Dim nDiff,nSomma
    ReDim acAmbiRuota(11)
    Dim nCasi
    Dim bQualsiasiDisp
    Dim nCasiParz
    Dim bEseguiGiocate
    Dim bEseguiStatistica
    Dim CollCasiRilevati
    Dim clsQuartina
    Inizio = EstrazioneIni
    Fine = EstrazioneFin
    bQualsiasiDisp = False
    bEseguiGiocate = True
    bEseguiStatistica = True
    nCasi = 0
    Set CollCasiRilevati = GetNewCollection
    
    
    If MsgBox ("Considerare gli ambi trasposti a prescindere dalla disposizione fisica dei numeri usciti ?" , vbQuestion + vbYesNo) = vbYes Then
        bQualsiasiDisp = True
    End If
    
    If MsgBox ("Eseguire la simulazione delle giocate sui casi rilevati ?" , vbQuestion + vbYesNo) = vbNo Then
        bEseguiGiocate = False
    End If
    
    If MsgBox ("Eseguire la statistica sui casi degli ambi trasposti rilevati ?" , vbQuestion + vbYesNo) = vbNo Then
        bEseguiStatistica = False
    End If
    
    For idEstr = Inizio To Fine
        i = 0
        nCasiParz = 0
        ' prima genero per ogni ruota tutti gli ambi costituiti dai nuemeri estratti
        For r = 1 To 12
            If r <> 11 Then
                i = i + 1
                Set acAmbiRuota(i) = New clsAmbo
                Call acAmbiRuota(i).GeneraAmbi(idEstr,r)
            End If
        Next
        ' poi ricerco gli ambi trasposti tra 2 ruote
        For r = 1 To 10
            For rr = r + 1 To 11
                Call Messaggio("Estrazione : " & idEstr & " confronto ruote : " & SiglaRuota(acAmbiRuota(r).GetRuota) & " --> " & SiglaRuota(acAmbiRuota(rr).GetRuota))
                For i = 1 To acAmbiRuota(r).GetQuantitaAmbi
                    aNumAmbo = acAmbiRuota(r).Getambo(i)
                    For ii = 1 To acAmbiRuota(rr).GetQuantitaAmbi
                        aNumAmboT = acAmbiRuota(rr).Getambo(ii)
                        If IsAmboTrasposto(aNumAmbo,aNumAmboT,bQualsiasiDisp) Then
                            nDiff = Differenza(aNumAmbo(1),aNumAmbo(2))
                            nSomma = Fuori90(aNumAmbo(1) + aNumAmbo(2))
                            ReDim aNum(4)
                            aNum(1) = nDiff
                            aNum(2) = nSomma
                            aNum(3) = Vert(nDiff)
                            aNum(4) = Vert(nSomma)
                            ReDim aRuote(2)
                            aRuote(1) = acAmbiRuota(r).GetRuota
                            aRuote(2) = acAmbiRuota(rr).GetRuota
                            ReDim aPoste(2)
                            aPoste(2) = 1
                            nCasi = nCasi + 1
                            nCasiParz = nCasiParz + 1
                            If bEseguiGiocate Then
                                Call Scrivi(String(50,"=") & " Caso " & FormatSpace(nCasi,5,True))
                                Call Scrivi("Estrazione : " & GetInfoEstrazione(idEstr))
                                Call Scrivi("Condizione : " & SiglaRuota(aRuote(1)) & " " & StringaNumeri(aNumAmbo) & " - " & SiglaRuota(aRuote(2)) & " " & StringaNumeri(aNumAmboT))
                                Call ImpostaGiocata(nCasi,aNum,aRuote,aPoste,13,2)
                                Call Gioca(idEstr)

                            End If
                            If bEseguiStatistica Then
                                Set clsQuartina = New clsQuartinaAmboTrasposto
                                clsQuartina.Ruota1 = aRuote(1)
                                clsQuartina.Ruota2 = aRuote(2)
                                clsQuartina.IdEstrazione = idEstr
                                Call clsQuartina.SetNumeri(aNumAmbo ,aNumAmboT )
                                CollCasiRilevati.add clsQuartina
                            End If
                        End If
                    Next
                Next
            Next
        Next
        'If nCasiParz > 0 And bEseguiGiocate Then
        '    Call Gioca(idEstr)
        'End If
        Call AvanzamentoElab(Inizio,Fine,idEstr)
        If ScriptInterrotto Then Exit For
    Next
    If bEseguiGiocate Then Call ScriviResoconto
    If bEseguiStatistica Then
        Call StatisticaCasiRilevati(CollCasiRilevati)
    End If
End Sub
Function IsAmboTrasposto(aNumAmbo,aNumAmboT,bQualsiasiDisp)
    Dim b
    b = False
    If aNumAmboT(1) > 0 And aNumAmboT(2) > 0 Then
        If aNumAmboT(1) = Trasposizione(aNumAmbo(1),aNumAmbo(2)) Then
            If aNumAmboT(2) = Trasposizione(aNumAmbo(2),aNumAmbo(1)) Then
                b = True
            End If
        ElseIf aNumAmboT(1) = Trasposizione(aNumAmbo(2),aNumAmbo(1)) Then
            If bQualsiasiDisp Then
                If aNumAmboT(2) = Trasposizione(aNumAmbo(1),aNumAmbo(2)) Then
                    b = True
                End If
            End If
        End If
    End If
    IsAmboTrasposto = b
End Function
Sub StatisticaCasiRilevati(CollCasiRilevati)
    Dim clsQuartina
    Dim k
    Dim nEstrTot
    
    nEstrTot = EstrazioniArchivio
    ReDim aTitoli(14)
    ReDim aColSpan(14)
    ReDim aColori(14)
    For k = 1 To 14
        If k >= 1 And k <= 5 Then
            aColori(k) = RGB(255,255,221)
        ElseIf k >= 6 And k <= 8 Then
            aColori(k) = RGB(255,225,255)
        ElseIf k >= 9 And k <= 11 Then
            aColori(k) = RGB(255,191,255)
        ElseIf k >= 12 And k <= 14 Then
            aColori(k) = RGB(255,159,255)
        End If
    Next
    aTitoli(1) = ""
    aTitoli(2) = ""
    aTitoli(3) = ""
    aTitoli(4) = ""
    aTitoli(5) = ""
    aTitoli(6) = "Ruota 1"
    aTitoli(7) = "Ruota 2"
    aTitoli(8) = "Tutte"
    For k = 1 To 5
        aColSpan(k) = 1
    Next
    aColSpan(6) = 3
    aColSpan(7) = 3
    aColSpan(8) = 3
    Call InitTabella(aTitoli,vbBlue,,3,vbWhite,"Courier New",aColSpan)
    aTitoli(1) = "Quartina rilevata"
    aTitoli(2) = "Estrazione di Rilevamento"
    aTitoli(3) = "Ruote Di Rilev."
    aTitoli(4) = "Numeri Estratti Ruota 1"
    aTitoli(5) = "Numeri Estratti Ruota 2"
    aTitoli(6) = "Ritardo"
    aTitoli(7) = "RitardoMax"
    aTitoli(8) = "Frequenza"
    aTitoli(9) = "Ritardo"
    aTitoli(10) = "RitardoMax"
    aTitoli(11) = "Frequenza"
    aTitoli(12) = "Ritardo"
    aTitoli(13) = "RitardoMax"
    aTitoli(14) = "Frequenza"
    Call AddRigaTabella(aTitoli,vbYellow,,,,"Courier New")
    For Each clsQuartina In CollCasiRilevati
        ReDim aValori(14)
        ReDim aEstratti(0)
        aValori(1) = StringaNumeri(clsQuartina.GetNumeri ,,True)
        aValori(2) = GetInfoEstrazione(clsQuartina.IdEstrazione)
        aValori(3) = SiglaRuota(clsQuartina.Ruota1) & " - " & SiglaRuota(clsQuartina.Ruota2)
        Call GetArrayNumeriRuota(clsQuartina.IdEstrazione,clsQuartina.Ruota1,aEstratti)
        aValori(4) = StringaNumeri(aEstratti,,True)
        Call GetArrayNumeriRuota(clsQuartina.IdEstrazione,clsQuartina.Ruota2,aEstratti)
        aValori(5) = StringaNumeri(aEstratti,,True)
        ReDim aRuote(1)
        aRuote(1) = clsQuartina.Ruota1
        Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(6),aValori(7),0,aValori(8),1,nEstrTot)
        aRuote(1) = clsQuartina.Ruota2
        Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(9),aValori(10),0,aValori(11),1,nEstrTot)
        aRuote(1) = TU_
        Call StatisticaFormazioneTurbo(clsQuartina.GetNumeri,aRuote,2,aValori(12),aValori(13),0,aValori(14),1,nEstrTot)
        Call AddRigaTabella(aValori,aColori,,,,"Courier New")
    Next
    Call Scrivi("Statistica nel range di tutte le estrazioni disponibili in archivio da " & GetInfoEstrazione(1) & " a " & GetInfoEstrazione(EstrazioniArchivio))
    Call CreaTabella
End Sub

Un Saluto a Te Maestrooo ;). Spero tutto bene. A presto! :o
 
Joe

Il "solito" capolavoro!!!

(mo, m'ho da studià pure questo)

BRAVISSIMO.

Ciao Luigi, è stato anche per me un piacere rileggerti e come dice Joe adesso c'è da studiare anche per me !!!

Non ti preoccupare le nostre non sono richieste e sempre e solo un ringraziamento per quello che ci hai insegnato.

Ciao.
 
Anche a me ha fatto piacere tornare per un saluto .. vedo che la fantasia di scriptare è ancora viva .. mi fa piacere sia per chi già era bravo di suo sia per quelli a cui sono riuscito a dare un input per imparare e che ora sono gia bravi ..
un saluto e un abbraccio a tutti quanti ...
Ciao !
 
Ciao a tutti, visto che ci stavo lavorando e senza voler competere con lo script di luigi che purtroppo risulta lunghissimo nei tempi di elaborazione, stavo preparando lo script per houdini in tabella e mi è venuto fuori la versione che posto per chi a voglia di uleriore migliorie in termini di pronostico.

Codice:
Sub Main()
 Dim anumeri(4),apron(6),ruotetutte(10)
 Dim ruote(2),ruot(12)
 Dim posta(5)
 posta(2) = 1.5
 posta(3) = 0.5
 fin = EstrazioneFin
 ini = fin - 150
 Scrivi "Ricerca Ambi trasposti su 2 Ruote  ******* forum Lottoced **** Listed By Mike58 **** ",True,True,2,4,3
 Scrivi
 Scrivi "Estrazioni esaminate......" & fin - Ini,1
 ReDim at(14)
 at(1) = " Data Estrazione "
 at(2) = " Ruote "
 'at(3) = " estratti r1 "
 'at(4) = " Estratti r2 "
 at(5) = " Ambi trasposti "
 at(6) = " Riatrdo "
 at(7) = " Rit:Max "
 at(8) = " incrMax "
 at(9) = " Frequenza "
 at(10) = " Pronostico "
 at(11) = " Esito "
 at(12) = " Colpo "
 at(13) = " Estratti "
 at(14) = " data esito "
 
 Call InitTabella(at,1,,3,5)

 For es = fin To Ini Step - 1
 ruot(1) = 11
  Messaggio "Elaboro Estrazioni . . . . . . " & es & "    ***** Script By Mike58 ***** "
  AvanzamentoElab ini,fin,es
  
  For r1 = 1 To 10
   For p1 = 1 To 4
    For p2 = p1 + 1 To 5
     n1 = Estratto(es,r1,p1)
     n2 = Estratto(es,r1,p2)
     b1 =(n1 & n2)
     For r2 = r1 + 1 To 11
      If r2 = 11 Then r2 = 12
      For p3 = 1 To 4
       For p4 = p3 + 1 To 5
        n3 = Estratto(es,r2,p3)
        n4 = Estratto(es,r2,p4)
        n5 = Trasposizione(n3,n4)
        n6 = Trasposizione(n4,n3)
        b8 =(n5 & n6)
        If n1 > 9 And n2 > 9 And n3 > 9 And n4 > 9 Then
         If Decina(n1) <> Decina(n2) Then
          If Cadenza(n1) <> Cadenza(n2) Then
           If b1 = b8 Then
           anumeri(1) = n1
           anumeri(2) = n2
           anumeri(3) = n3
           anumeri(4) = n4
           apron(1) = Fuori90(n1+n2)
           apron(2) = Vert(apron(1))
           'apron(3) = Diametrale(n1)
           'apron(4) = Diametrale(n2)
           apron(5) = Differenza(n1,n2)
           apron(6) = Vert(apron(5))
           For rr = 1 To 10
           ruotetutte(rr) = rr
           Next
           ruote(1) = r1
           ruote(2) = r2
            casi = casi + 1
            Call StatisticaFormazioneTurbo(anumeri,ruot,2,rit,ritmax,Incr,fre,Ini,fin)
            Call VerificaEsito(apron,ruotetutte,es+1,2,11,Nothing,esito,colpi,estratti,id)
            ReDim av(14)
            av(1) = DataEstrazione(es)
            av(2) = SiglaRuota(r1) & " - " & SiglaRuota(r2)
            'av(3) = StringaEstratti(es,r1)
            'av(4) = StringaEstratti(es,r2)
            av(5) = n1 & "." & n2 & " - " & n3 & "." & n4
            av(6) = rit
            av(7) = ritmax
            av(8) = Incr
            av(9) = fre
            av(10) = StringaNumeri(apron)
            av(11) = esito
            av(12) = colpi
            av(13) = estratti
            If esito <> "" Then av(14) = DataEstrazione(id)
            If colpi > 10 And esito = "" Then av(14) = " Negativo "
            If colpi < 11 And esito = "" Then av(14) = " In corso "
            Call AddRigaTabella(av,,,3)
            Call SetColoreCella(5,,7)
            Call SetColoreCella(10,,1)
            
            
           End If
          End If
         End If
        End If
       Next
      Next
     Next
    Next
   Next
  Next
  
 Next
 CreaTabella()
End Sub
 
La tua presenza caro LUIGIB,e' il continuo coraggiante per il lotto,senza gli script,siamo un popolo senza presidente ma quello onesto come te!
 

Ultima estrazione Lotto

  • Estrazione del lotto
    venerdì 31 gennaio 2025
    Bari
    49
    28
    64
    42
    46
    Cagliari
    53
    76
    89
    26
    13
    Firenze
    38
    51
    15
    50
    56
    Genova
    87
    09
    35
    30
    04
    Milano
    53
    25
    23
    09
    37
    Napoli
    01
    65
    38
    06
    15
    Palermo
    05
    07
    10
    26
    58
    Roma
    32
    31
    09
    46
    80
    Torino
    68
    20
    44
    51
    11
    Venezia
    90
    24
    62
    54
    61
    Nazionale
    20
    79
    07
    45
    60
    Estrazione Simbolotto
    Bari
    45
    37
    01
    41
    17

Ultimi Messaggi

Indietro
Alto