Novità

Script su metodi di Fabarri

salvo50

Advanced Member >PLATINUM PLUS<
Ho fatto uno script sul QUADRATO ARMONICO di FABARRI ed ho intenzione di farni altri del Fabarri.
Volevo chiedere una cortesia agli esperti, in questo script ho inserito gli operatori < e > per indicare - non
uguale - , però succede che tutte le volte che apro lo script si separano, da così <> me li ritrovo cosi < >,
c'è qualche accorgimento da usare? Oppure se si può sostituire con qualche altro operatore?

Il quadrato armonico (Fabarri).jpg

Codice:
'Progetto - IL QUADRATO ARMONICO - by FABARRI
'Script   - by Salvo50
Option Explicit
Sub Main
    TestoInBandaPassante "***** Progetto IL QUADRATO ARMONICO by Fabarri, script by Salvo50 ****** ",1,5,0
    Scrivi
    Scrivi
    Dim r1,p,pp,es,r2,clp,esq
    Dim estr1,estr2,destr1,destr2,cestr1,cestr2
    Dim diorestr1,diorestr2,diverestr1,diverestr2,dincrestr1,dincrestr2
    Dim difforiz,diffvert,diffincr
    Dim fin,Ini,ru(1),poste(2)
    Dim ambata(2),idestr,ruota,col,esqcol
    poste(1) = 1
    'poste(2) = 1
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",idestr,9270)
    clp = InputBox("Per quanti colpi vuoi fare la ricerca",,3)
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,30))
    r1 = InputBox("Inserisci numero ruota ( 1 - 10 NAZ 12)",ruota,8)
    ru(1) = r1
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol
        AvanzamentoElab esq,esqcol,es
        ColoreTesto 2
        Scrivi String(110,"*") & " " & es
        ColoreTesto 0
        Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
        Scrivi "  " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),2
        For p = 1 To 4
            For pp = p + 1 To 5
                estr1 = Format2(Estratto(es,r1,p))
                estr2 = Format2(Estratto(es,r1,pp))
                If Not Gemello(estr1) Then
                    If Not Gemello(estr2) Then
                        destr1 = Decina(estr1)
                        cestr1 = Cadenza(estr1)
                        destr2 = Decina(estr2)
                        cestr2 = Cadenza(estr2)
                        If destr1 <> destr2  Then
                            If destr1 <> cestr2 Then
                                If cestr1 <> cestr2  Then
                                    If cestr1 <> destr2 Then
                                        'distanza orizzontale
                                        diorestr1 =(Differenza(destr1,cestr1))
                                        diorestr2 =(Differenza(destr2,cestr2))
                                        If(diorestr1) > 5 Then diorestr1 = 10 - diorestr1
                                        If(diorestr2) > 5 Then diorestr2 = 10 - diorestr2
                                        'distanza verticale
                                        diverestr1 =(Differenza(destr1,destr2))
                                        diverestr2 =(Differenza(cestr1,cestr2))
                                        If(diverestr1) > 5 Then diverestr1 = 10 - diverestr1
                                        If(diverestr2) > 5 Then diverestr2 = 10 - diverestr2
                                        'distanza incrociata
                                        dincrestr1 =(Differenza(destr1,cestr2))
                                        dincrestr2 =(Differenza(cestr1,destr2))
                                        If(dincrestr1) > 5 Then dincrestr1 = 10 - dincrestr1
                                        If(dincrestr2) > 5 Then dincrestr2 = 10 - dincrestr2
                                        'differenza totale orizzontale verticale e incrociata
                                        difforiz = Differenza(diorestr1,diorestr2)
                                        diffvert = Differenza(diverestr1,diverestr2)
                                        diffincr = Differenza(dincrestr1,dincrestr2)
                                        If difforiz = 90 Then difforiz = 0
                                        If diffvert = 90 Then diffvert = 0
                                        If diffincr = 90 Then diffincr = 0
                                        If difforiz = diffvert And difforiz = diffincr And diffvert = diffincr Then
                                        Scrivi String(70,"*") 
Scrivi " Ambi      Diff. Orizz." & Space(4) & " Diff. Vert." & Space(4) & "Diff. Incroc."
                                            Scrivi "  " & estr1 & Space(12) & diorestr1 & Space(15) & diverestr1 & Space(15) & dincrestr1
                                            Scrivi "  " & estr2 & Space(12) & diorestr2 & Space(15) & diverestr2 & Space(15) & dincrestr2
                                            Scrivi String(70,"-")
                                            Scrivi "Differenza" & Space(6) & difforiz & Space(15) & diffvert & Space(15) & diffincr

                                            ambata(1) = estr1
                                            ambata(2) = estr2
                                            ImpostaGiocata 1,ambata,ru,poste,clp
                                            Gioca es
                                        End If
                                    End If
                                End If
                            End If
                        End If
                    End If
                End If
            Next
        Next
    Next
    ScriviResoconto
End Sub
 
Ultima modifica:

joe

Advanced Member >PLATINUM PLUS<
Ciao Salvo,

a me non si presenta quel problema.

Se incolli lo script nel WordPad si separano ugualmente

il segno di minore e di maggiore ?

Se no ... Puoi provare ad incollarlo sul WordPad

che ti elimina le formattazioni strane

copiarlo nuovamente senza le formattazioni andate perse

e dopo ... incollarlo in spaziometria.

:)
 

salvo50

Advanced Member >PLATINUM PLUS<
Ciao!
Quando lo incollo in WordPad non si separano, ma quando da WordPad lo incollo in Spaziometria subito non si separano, salvo lo script, lo apro e sono separati, ho provato anche a salvarlo in TXT, ma niente da fare, ho un altro script che non si separano, devo capire perchè in uno script si separano e in un altro no, se scopro il perchè, lo posto.
 
Ultima modifica:

Joe91

Advanced Member >PLATINUM PLUS<
Ciao Salvo.

Prova a selezionare ed usare il carattere

"Courrier New" e "10 Punti"

prima di salvare il file.

:)
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Joe91;n2058863 ha scritto:
Ciao Salvo.

Prova a selezionare ed usare il carattere

"Courrier New" e "10 Punti"

prima di salvare il file.

:)

Già è così, dato che mi hai dato l'idea, ho provato a casaccio altri caratteri e dimensioni, ma fino ad ora continuano a staccarsi.
 

joe

Advanced Member >PLATINUM PLUS<
Ciao Salvo.

prova a canellare TUTTO

sia prima che dopo i 2 caratteri.

Poi salvi questo script piccolissimo e vedi cosa succede.

:)
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Ciao e Buona Pasqua!

Allora cancellato tutte le righe prima e dopo, salvato riaperto e gli operatori erano staccati, allora ho tolto anche le istruzioni ed ho lasciato solo gli operatori e non si sono separati, ho fatto un ulteriore prova ho lasciato tutte le righe prima e dopo ho cancellate le righe con gli operatori ed ho lasciato solo gli operatori incriminati, e non si sono staccati quindi sono arrivato (con il tuo aiuto) alla conclusione che si staccavano per come avevo scritto quelle righe quindi per prima cosa ho tolto le parentesi e miracolo, non si sono staccate più.

Grazie Mille!
 

claudio8

Premium Member
Ti lascio uno vecchio script fatto e postato x altro forum, dovrebbe essere sempre un metodo di Fabarri.

Codice:
'  LA MASSIMA ARMONIA QUADRATICA --- Importanza del "fattore 45" x f
Sub Main()
    Dim ru(2)
    Dim ambata(2)
    Dim posta(5)
    posta(1) = 1
    clp = 10
    co = 0
    ini = EstrazioneFin - 566
    fin = EstrazioneFin
    For es = ini To fin
        For p = 1 To 4
            For r = 1 To 10
                For rr = r + 1 To 12
                    If rr = 11 Then rr = 12 End If
                    'A --- C
                    '|     |
                    'B --- D
                    a = Estratto(es,r,p)
                    c = Estratto(es,r,p + 1)
                    b = Estratto(es,rr,p)
                    d = Estratto(es,rr,p + 1)
                    If Distanza(a,d) = 45 And Distanza(b,c) = 45 And Distanza(a,c) = Distanza(b,d) And Distanza(a,b) = Distanza(c,d)And Fuori90(a + c) = Fuori90(b + d) And Fuori90(a + b) = Fuori90(c + d) Then
                        co = co + 1
                        ambata(1) = d
                        'ambata(2) = Fuori90(a + b + c + d)
                        ru(1) = r ' prima ruota in gioco
                        ru(2) = rr ' seconda ruota in gioco
                        Scrivi "---------------------------------------------------------------"
                        ColoreTesto 1
                        Scrivi " Generatori previsione isotopi : " & a & "-" & c & " dist orizz " & Distanza(a,c) & "-" & Distanza(b,d)
                        Scrivi "                               : " & b & "-" & d & " dist diagonale 45 "_
                         & " su " & NomeRuota(r) & " e " & NomeRuota(rr) & " caso " & co
                        ColoreTesto 0
                        ImpostaGiocata 1,ambata,ru,posta,clp
                        Gioca es,True,,2 ' x spaziometria di luigiB
                        'Gioca es        ' x L8 ...

                    End If
                Next
            Next
        Next
    Next
    ColoreTesto 1
    Scrivi
    Scrivi
    Scrivi " CASI TROVATI : " & co
    ColoreTesto 0
    ScriviResoconto
    Scrivi String(40,"=") & "listato by claudio8 x f",1
    ColoreTesto 0
End Sub

B.P.
 

salvo50

Advanced Member >PLATINUM PLUS<
IL COEFFICIENTE MEDIO INTEGRATORE

Il coeficente medio integratore (Fabarri).jpg


Ho fatto delle ricerche con questo script, se faccio delle ricerche per lunghi periodi il sistema è perdente, ma se prendo una qualsiasi estrazione ed imposto la ricerca per non più di otto estrazioni, il più delle volte che ho cercato, il sistema è risultato vincente, anche perche si gioca un solo ambo per una sola ruota, quindi basta un ambo per coprire più di 60 colpi negativi, dato che ho impostato ogni ambo per tredici colpi, che si possono anche cambiare a piacere.

Codice:
Option Explicit
Sub Main
   Dim R1,P1,P2,Es,Estr1,Estr2,Clp
   Dim FIn,Caso,Casi,P3,E1,Ini
   Dim Amb1(2),Ru(1),Poste(2),M(2)
   Poste(2) = 1
   FIn = EstrazioneFin
   Ini = InputBox("Inserisci l'estrazione che vuoi iniziare",,9750)
   R1 = InputBox("Inserisci numero ruota ( 1 - 10 NAZ 12)",,8)
   Clp = InputBox("Per quanti colpi vuoi fare la ricerca",,13)
   Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(12) & "IL COEFFICIENTE MEDIO INTEGRATORE - by FABARRI - SCRIPT Salvo50",1,,4,,3,,1
   Ru(1) = R1
   For Es = Ini To FIn
      Caso = 0
      AvanzamentoElab Ini,FIn,Es
      For P1 = 1 To 4
         For P2 = P1 + 1 To 5
            Estr1 = Estratto(Es,R1,P1)
            Estr2 = Estratto(Es,R1,P2)
            M(1) = Estr1 : M(2) = Estr2
            Call OrdinaMatrice(M,- 1)
            If M(1) > 30 And M(2) < 61 Then
               Amb1(1) = 121 - M(1)
               Amb1(2) = 61 - M(2)
               Caso = Caso + 1
               Casi = Casi + 1
               Scrivi String(89,"*") & " Casi Totali " & FormattaStringa(Casi,"0000"),1,,,2
               Scrivi String(80,"*") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000"),1,,,1
               Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
               Scrivi "  " & SiglaRuota(R1) & " ",1,0
               For P3 = 1 To 5
                  E1 = Estratto(Es,R1,P3)
                  If E1 = Estr1 Or E1 = Estr2 Then
                     ColoreTesto 2
                  Else
                     ColoreTesto 0
                  End If
                  Scrivi Format2(E1) & " ",1,0
                  ColoreTesto 0
               Next
               Scrivi
               Scrivi
               Scrivi "1° Numero " &  Amb1(1) & " = 121 - " & Format2 (M(1)),1
               Scrivi "2° Numero " &  Amb1(2) & " =  61 - " & Format2 (M(2)),1
               Scrivi
               ImpostaGiocata 1,Amb1,Ru,Poste,Clp
               Gioca Es
            End If
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End Sub
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Grazie Claudio8 dopo me lo guardo con calma.

Ciao e tantissimi Auguri di Buona Pasqua!
 

Alien.

Advanced Premium Member
salvo50;n2058925 ha scritto:
IL COEFFICIENTE MEDIO INTEGRATORE

[IMG2=JSON]{"data-align":"none","data-size":"full","src":"https:\/\/s13.postimg.org\/nt6c94ebr\/Il_coeficente_medio_integratore_Fabarri.jpg"}[/IMG2]

Ho fatto delle ricerche con questo script, se faccio delle ricerche per lunghi periodi il sistema è perdente, ma se prendo una qualsiasi estrazione ed imposto la ricerca per non più di otto estrazioni, il più delle volte che ho cercato, il sistema è risultato vincente, anche perche si gioca un solo ambo per una sola ruota, quindi basta un ambo per coprire più di 60 colpi negativi, dato che ho impostato ogni ambo per tre colpi, che si possono anche cambiare a piacere.

Codice:
'Progetto - IL COEFFICIENTE MEDIO INTEGRATORE - by FABARRI
'Script - by Salvo50
Option Explicit
Sub Main
TestoInBandaPassante "***** Progetto IL COEFFICIENTE MEDIO INTEGRATORE by Fabarri, script by Salvo50 ****** ",1,5,0
Dim r1,p,pp,es,r2,estr1,estr2,clp,esq
Dim fin,Ini,ru(1),poste(2)
Dim amb(2),amb2(2),idestr,ruota,col,esqcol
'poste(1) = 1
poste(2) = 1
fin = EstrazioneFin
esq = InputBox("Inserisci l'estrazione che vuoi iniziare",idestr,9270)
clp = InputBox("Per quanti colpi vuoi fare la ricerca",,3)
col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,8))
r1 = InputBox("Inserisci numero ruota ( 1 - 10 NAZ 12)",ruota,8)
ru(1) = r1
esqcol = esq + col
If esqcol > fin Then esqcol = fin
For es = esq To esqcol
AvanzamentoElab esq,esqcol,es
Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
Scrivi " " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),2
For p = 1 To 4
For pp = p + 1 To 5
estr1 = Format2(Estratto(es,r1,p))
estr2 = Format2(Estratto(es,r1,pp))
If estr1 > 30 Then
If estr2 < 61 Then
If estr2 < estr1 Then
amb(1) = 121 - estr1
amb(2) = 61 - estr2
ImpostaGiocata 1,amb,ru,poste,clp
End If
End If
End If
If estr2 > 30 Then
If estr1 < 61 Then
If estr1 < estr2 Then
amb2(1) = 121 - estr2
amb2(2) = 61 - estr1
ImpostaGiocata 2,amb2,ru,poste,clp
End If
End If
End If
Gioca es
Next
Next
Next
ScriviResoconto
End Sub

Ciao,mi dice errore script e sparisce tutto la pagina diventa bianca. help ,grazie. e Auguri di Buona Pasqua.
 

salvo50

Advanced Member >PLATINUM PLUS<
salvo50;n2058925 ha scritto:
Ho fatto delle ricerche con questo script, se faccio delle ricerche per lunghi periodi il sistema è perdente, ma se prendo una qualsiasi estrazione ed imposto la ricerca per non più di otto estrazioni, il più delle volte che ho cercato, il sistema è risultato vincente, anche perche si gioca un solo ambo per una sola ruota, quindi basta un ambo per coprire più di 60 colpi negativi, dato che ho impostato ogni ambo per tre colpi, che si possono anche cambiare a piacere.

Mi sono sbagliato possono venire fino a 10 ambi con le condizioni del - Coefficiente Medio Integratore.
 

salvo50

Advanced Member >PLATINUM PLUS<
Per Alien

Questo scherzetto che fa a te, qualche volta quando prendo uno script succede anche a me, è perche (almeno a me succede così) non ho preso fino in fondo lo script il più delle volte manca - END SUB, prova a ricopiarlo e accertati che lo script ci sia tutto, se lo script c'è tutto, sinceramente non sò cosa può essere, ricambio gli auguri.
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Ciao a Tutti!

Il Triangolo Iscritto

Nell'articolo è uno solo il numero pronosticato, il vertice del triangolo, però secondo me non lo specifica bene quale deve essere, nel primo esempio che fà con il 59 e 09 dà come vertice il 34, infatti 59+09=68 diviso 2 = 34, nel secondo esempio con i numeri 62 e 22, allora 62+22=84 diviso 2 = 42, ma l'autore dice che il vertice è 87, praticamente il diametrale di 42, allora cosa metto il numero che viene come vertice o il suo diametrale? Io nello script li ho messi tutti e due, così ho pronosticato anche l'ambo, il numero vertice pronosticato l'ho fatto visualizzare in rosso.

Il triangolo iscritto (Fabarri).jpg

Codice:
'Progetto - IL TRIANGOLO ISCRITTO - by FABARRI
'Script   - by Salvo50
Option Explicit
Sub Main
    Dim r1,p1,es,r2,estr1,estr2,clp,esq
    Dim fin,Ini,caso,a,b(3)
    Dim idestr,col,esqcol,ru(3),posta(2)
    Dim figestr1,figestr2,diffig,Vertic,figvertice,diffe1e2
    Dim sommaestr,sommafig,semisomestr,figsemsomestr,semisomfig
    Dim num1(2),diamve
    TestoInBandaPassante "***** Progetto IL TRIANGOLO ISCRITTO by Fabarri, script by Salvo50 ****** ",1,5,0
    Scrivi
    Scrivi
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",idestr,9300)
    clp = InputBox("Per quanti colpi vuoi fare la ricerca",,5)
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,1))
    posta(1) = 1
    posta(2) = 1
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol
        AvanzamentoElab esq,esqcol,es
        For r1 = 1 To 10
            For p1 = 1 To 5
                estr1 = Estratto(es,r1,p1)
                For r2 = r1 + 1 To 11
                    If r2 = 11 Then r2 = 12
                    estr2 = Estratto(es,r2,p1)
                    If Differenza(estr1,estr2) > 15 Then
                        sommaestr = Fuori90(90 +(estr1 + estr2))
                        If pari(sommaestr) Then
                            Vertic = sommaestr / 2
                            figvertice = Figura(Vertic)
                            figestr1 = Figura(estr1)
                            figestr2 = Figura(estr2)
                            diffig = Differenza(figestr1,figestr2)
                            If diffig = 90 Then diffig = 9
                            If pari(diffig) Then
                                sommafig = figestr1 + figestr2
                                If pari(sommafig) Then
                                    semisomfig = sommafig / 2
                                    If semisomfig = figvertice Then
                                        diamve = Diametrale(Vertic)
                                        Scrivi
                                        Scrivi
                                        Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
                                        Scrivi "  " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),0,0
                                        Scrivi "   Seconda Ruota " & Left(NomeRuota(r2),2) & " " & StringaEstratti(es,r2)
                                        Scrivi "(" &Format2(estr1) & Space(1) & Format2(estr2) &"   Semifigura "& (semisomfig)&")",0,0
                                        Scrivi " (Pronostico  ",0,0
                                        ColoreTesto 2
                                        Scrivi Format2(Vertic),0,0
                                        ColoreTesto 0
                                        Scrivi " "&  Format2(diamve)&"  Figura " & figvertice &")"
                                        b(1) = estr1
                                        b(2) = estr2
                                        b(3) = Vertic
                                        DisegnaCerchioCiclometrico b,- 1
                                        ru(1) = r1
                                        ru(2) = r2
                                        'ru(3) = 11
                                        num1(1) = Vertic
                                        num1(2) = diamve
                                        ImpostaGiocata 1,num1,ru,posta,clp
                                        Gioca es
                                    End If
                                End If
                            End If
                        End If
                    End If
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Ciao a Tutti!

NUOVA FORMULA PROPORZIONALE

Nuova Formula Propozionale  (Fabarri) - Delear.jpg
Rifatto il 06-09-2020
Codice:
Option Explicit
Sub Main
   Dim R,P1,P2,P3,Es,E1,Estr1,Estr2
   Dim FIn,Ini,Clp,Ruota,Caso,Casi
   Dim Somma1,Somma2,Com91,xCom91
   Dim SemiCom91,Amb1,Amb2,xSemiCom91
   Dim Ru(1),Poste(2),Amb(2)
   Poste(1) = 1
   Poste(2) = 1
   FIn = EstrazioneFin
   Ini = InputBox("Inserisci l'estrazione che vuoi iniziare",,9790)
   Clp = InputBox("Per quanti colpi vuoi fare la ricerca",,7)
   R = InputBox("Inserisci numero ruota ( 1 - 10 NAZ 12)",Ruota,5)
   If R = 11 Then R = 12
   Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(10) & " NUOVA FORMULA PROPORZIONALE di FABARRI - Script Salvo50" & Space(10),1,,4,,3,,1
   For Es = Ini To FIn
      Messaggio(Es)
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For P1 = 1 To 4
         P2 = P1 + 1
         Estr1 = Estratto(Es,R,P1)
         Estr2 = Estratto(Es,R,P2)
         Ru(1) = R
         If Estr1 > 0 Then
            Somma1 = Fuori90(Estr1 + Estr2)
            Com91 = 91 - Somma1
            xCom91 = Com91
            If dispari(Com91) Then Com91 = Com91 + 1
            SemiCom91 =(Com91 / 2)
            xSemiCom91 = SemiCom91
            If dispari(SemiCom91) Then SemiCom91 = SemiCom91 + 1
            Somma2 = Com91 + SemiCom91
            'If dispari(Somma2) Then Somma2 = Somma2 + 1
            Amb1 = Somma2 / 2
            Amb2 = Fuori90(90 +(Com91 - Amb1))
            Amb(1) = Amb1
            Amb(2) = Amb2
            Caso = Caso + 1
            Casi = Casi + 1
            ColoreTesto 1
            Scrivi String(105,"o") & " Casi Totali " & FormattaStringa(Casi,"0000")
            ColoreTesto 2
            Scrivi String(95,"o") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000")
            ColoreTesto 0
            Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
            Scrivi "  " & SiglaRuota(R) & " ",1,0
            For P3 = 1 To 5
               E1 = Estratto(Es,R,P3)
               If E1 = Estr1 Or E1 = Estr2 Then
                  ColoreTesto 2
               Else
                  ColoreTesto 0
               End If
               Scrivi Format2(E1) & " ",1,0
               ColoreTesto 0
            Next
            Scrivi
            Scrivi
            Scrivi Space(15) & Format2(Estr1) & " + " & Format2(Estr2) & " = " & Format2(Somma1),1,0
            Scrivi "  Prima Somma ",1
            Scrivi Space(15) & 91 & " - " & Format2(Somma1) & " = " & Format2(xCom91),1,0
            Scrivi "  Complemento a 91 della prima somma, se disparo, si aggiunge 1  ",1
            Scrivi Space(15) & Format2(Com91) & " / 02 = " & Format2(xSemiCom91),1,0
            Scrivi "  Co91 della prima somma, Diviso 2, se disparo si aggiunge 1 ",1
            Scrivi Space(15) & Format2(Com91) & " + " & Format2(SemiCom91) & " = " & Format2(Somma2),1,0
            Scrivi "  Seconda Somma ",1
            Scrivi Space(14) & FormattaStringa(Somma2,"000") & " / 02 = " & Format2(Amb1),1,0
            Scrivi "  Primo Elemento Ambo, Seconda Somma diviso 2  ",1
            Scrivi
            ImpostaGiocata 1,Amb,Ru,Poste,Clp
            Gioca Es
         End If
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End Sub


Inserito il 06-09-2020
Per tutte le ruote

Codice:
Option Explicit
Sub Main
   Dim R,P1,P2,P3,Es,E1,Estr1,Estr2
   Dim FIn,Ini,Clp,Ruota,Caso,Casi
   Dim Somma1,Somma2,Com91,xCom91
   Dim SemiCom91,Amb1,Amb2,xSemiCom91
   Dim Ru(1),Poste(2),Amb(2)
   Poste(1) = 1
   Poste(2) = 1
   FIn = EstrazioneFin
   Ini = InputBox("Inserisci l'estrazione che vuoi iniziare",,9790)
   Clp = InputBox("Per quanti colpi vuoi fare la ricerca",,7)
   Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(10) & " NUOVA FORMULA PROPORZIONALE di FABARRI - Script Salvo50" & Space(10),1,,4,,3,,1
   For Es = Ini To FIn
      Messaggio(Es)
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For R = 1 To 12
         If R = 11 Then R = 12
         For P1 = 1 To 4
            P2 = P1 + 1
            Estr1 = Estratto(Es,R,P1)
            Estr2 = Estratto(Es,R,P2)
            Ru(1) = R
            If Estr1 > 0 Then
               Somma1 = Fuori90(Estr1 + Estr2)
               Com91 = 91 - Somma1
               xCom91 = Com91
               If dispari(Com91) Then Com91 = Com91 + 1
               SemiCom91 =(Com91 / 2)
               xSemiCom91 = SemiCom91
               If dispari(SemiCom91) Then SemiCom91 = SemiCom91 + 1
               Somma2 = Com91 + SemiCom91
               'If dispari(Somma2) Then Somma2 = Somma2 + 1
               Amb1 = Somma2 / 2
               Amb2 = Fuori90(90 +(Com91 - Amb1))
               Amb(1) = Amb1
               Amb(2) = Amb2
               Caso = Caso + 1
               Casi = Casi + 1
               ColoreTesto 1
               Scrivi String(105,"o") & " Casi Totali " & FormattaStringa(Casi,"0000")
               ColoreTesto 2
               Scrivi String(95,"o") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000")
               ColoreTesto 0
               Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
               Scrivi "  " & SiglaRuota(R) & " ",1,0
               For P3 = 1 To 5
                  E1 = Estratto(Es,R,P3)
                  If E1 = Estr1 Or E1 = Estr2 Then
                     ColoreTesto 2
                  Else
                     ColoreTesto 0
                  End If
                  Scrivi Format2(E1) & " ",1,0
                  ColoreTesto 0
               Next
               Scrivi
               Scrivi
               Scrivi Space(15) & Format2(Estr1) & " + " & Format2(Estr2) & " = " & Format2(Somma1),1,0
               Scrivi "  Prima Somma ",1
               Scrivi Space(15) & 91 & " - " & Format2(Somma1) & " = " & Format2(xCom91),1,0
               Scrivi "  Complemento a 91 della prima somma, se disparo, si aggiunge 1  ",1
               Scrivi Space(15) & Format2(Com91) & " / 02 = " & Format2(xSemiCom91),1,0
               Scrivi "  Co91 della prima somma, Diviso 2, se disparo si aggiunge 1 ",1
               Scrivi Space(15) & Format2(Com91) & " + " & Format2(SemiCom91) & " = " & Format2(Somma2),1,0
               Scrivi "  Seconda Somma ",1
               Scrivi Space(14) & FormattaStringa(Somma2,"000") & " / 02 = " & Format2(Amb1),1,0
               Scrivi "  Primo Elemento Ambo, Seconda Somma diviso 2  ",1
               Scrivi
               ImpostaGiocata 1,Amb,Ru,Poste,Clp
               Gioca Es
            End If
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End Sub
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Ciao a Tutti!

IL QUADRATO A DIAGONALE FISSA

Risultano 4 numeri da giocare per ambata su 2 ruote, l'ambata dovrebbe uscire a colpo per non andare in perdita, nello script ho messo la ricerca per un colpo, naturalmente si può cambiare. Nell'articolo oltre alla ricerca dei 4 numeri, fa riferimento anche a quei casi dove una delle due somme delle distanze sia diversa da 90, e calcolare il numero da modificare per avere la somma delle distanze uguale a 90, per questo ancora non ho trovato la formula per individuare il numero, ma ci sto provando.

Quadrato a diagonale fissa (Fabarri).jpg

Codice:
 'Progetto - QUADRATO A DIAGONALE FISSA - by FABARRI
'Script   - by Salvo50
Option Explicit
Sub Main
    Dim r1,p1,p2,es,r2,estr1,estr2,estr3,estr4
    Dim fin,Ini,caso,casi,clp,esq,somma1,somma2,idestr,col,esqcol
    Dim ru(3),posta(2),poste(1)
    Dim diff13ve,diff24ve,diff12or,diff34or,diff14in,diff23in
    Dim ambo1(2),ambo2(2),ambo3(2),ambo4(2),ambata(4)
    TestoInBandaPassante "***** Progetto QUADRATO A DIAGONALE FISSA by Fabarri, script by Salvo50 ****** ",1,5,0
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",idestr,9180)
    clp = InputBox("Per quanti colpi vuoi fare la ricerca",,1)
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,20))
    poste(1) = 1
    posta(2) = 1
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol
        AvanzamentoElab esq,esqcol,es
        caso = 0
        For r1 = 1 To 10
            For r2 = r1 + 1 To 11
                If r2 = 11 Then r2 = 12
                For p1 = 1 To 4
                    For p2 = p1 + 1 To 5
                        estr1 = Estratto(es,r1,p1)
                        estr2 = Estratto(es,r1,p2)
                        estr3 = Estratto(es,r2,p1)
                        estr4 = Estratto(es,r2,p2)
                        If estr1 <> estr2 And estr1 <> estr3 And estr1 <> estr4 Then
                            If estr2 <> estr3 And estr2 <> estr4 And estr3 <> estr4 Then
                                'differenze primo triangolo
                                diff13ve = Differenza(estr1,estr3)
                                diff34or = Differenza(estr3,estr4)
                                'differenze secondo triangolo
                                diff12or = Differenza(estr1,estr2)
                                diff24ve = Differenza(estr2,estr4)
                                'Differenza Diagonale fissa triagoli
                                diff14in = Differenza(estr1,estr4)
                                If diff13ve > 45 Then diff13ve = 90 - diff13ve
                                If diff34or > 45 Then diff34or = 90 - diff34or
                                If diff12or > 45 Then diff12or = 90 - diff12or
                                If diff24ve > 45 Then diff24ve = 90 - diff24ve
                                If diff14in > 45 Then diff14in = 90 - diff14in
                                If diff13ve = 45 Or diff34or = 45 Or diff12or = 45 Or diff24ve = 45 Then
                                    somma1 = diff13ve + diff34or + diff14in
                                    somma2 = diff24ve + diff12or + diff14in
                                    If somma1 = 90 And somma2 = 90 Then
                                        caso = caso + 1
                                        casi = casi + 1
                                        Scrivi String(90,"*") & " Caso N" & Format2(caso) & " Estraz. " & Format2(es)
                                        Scrivi String(90,"*") & " Casi Totali N" & Format2(casi)
                                        Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
                                        Scrivi "  " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1) & "   Seconda Ruota "_
                                        & Left(NomeRuota(r2),2) & " " & StringaEstratti(es,r2)
                                        Scrivi Left(NomeRuota(r1),2) & "  " & Format2(estr1) & Space(1) & Format2(estr2),0,0
                                        Scrivi " Distanze Primo   Triangolo -->    ",0,0
                                        ColoreTesto 2
                                        Scrivi Format2(diff13ve) & Space(5) & Format2(diff34or)_
                                        & Space(5) & Format2(diff14in) & " Somma = " &(somma1)
                                        ColoreTesto 0
                                        Scrivi Left(NomeRuota(r2),2) & "  " & Format2(estr3) & Space(1) & Format2(estr4),0,0
                                        Scrivi " Distanze Secondo Triangolo -->    ",0,0
                                        ColoreTesto 1
                                        Scrivi Format2(diff12or) & Space(5) & Format2(diff24ve)_
                                        & Space(5) & Format2(diff14in) & " Somma = " &(somma2)
                                        ColoreTesto 0
                                        Scrivi
                                        ru(1) = r1
                                        ru(2) = r2
                                        'ru(3) = 11
                                        ambo1(1) = estr1
                                        ambo1(2) = estr2
                                        ImpostaGiocata 1,ambo1,ru,posta,clp
                                        ambo2(1) = estr3
                                        ambo2(2) = estr4
                                        ImpostaGiocata 2,ambo2,ru,posta,clp
                                        ambo3(1) = estr1
                                        ambo3(2) = estr3
                                        ImpostaGiocata 3,ambo3,ru,posta,clp
                                        ambo4(1) = estr2
                                        ambo4(2) = estr4
                                        ImpostaGiocata 4,ambo4,ru,posta,clp
                                        ambata(1) = estr1
                                        ambata(2) = estr2
                                        ambata(3) = estr3
                                        ambata(4) = estr4
                                        ImpostaGiocata 5,ambata,ru,poste,clp
                                        Gioca es
                                    End If
                                End If
                            End If
                        End If
                    Next
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
Ciao a Tutti!

Continuo con IL QUADRATO A DIAGONALE FISSA con la ricerca di quei triangoli con somma diversa di 90, nello script che ho fatto faccio apparire in rosso le distanze e le somme diverse da 90 ed in azzurro (dopo la correzione) quelle con somma 90, quindi azzurro ok, rosso non ok, la formula per trovare il numero da sostituire a quello errato, non l'ho trovata, ho usato anche la formuletta trovata da Enplein ma non andava bene in questo caso, allora ho avuto l'idea di incrementare una variabile da 1 a 90 ed ad ogni incremento fare i calcoli finche non trovo il numero giusto.

Quindi avevo pensato di usare un - while wend - ma andava in anomalia di < overflow >, l'ho cambiato con - do while loop - ma non c'è stato verso, ho inserito - abs,int,fix,cint,eval - andava sempre in errore di < overflow >, allora ho optato per un FOR NEXT, uso l'incremento come numero e faccio i calcoli, quando la somma che mi interessa è uguale a 90, con - EXIT FOR - esco e passo oltre, non lo so se è normale usare - FOR NEXT - in questo modo.

Codice:
  'Progetto - QUADRATO A DIAGONALE FISSA con correzione somma triangoli diversa da 90  - by FABARRI
'Script   - by Salvo50
Option Explicit
Dim r1,p1,p2,es,r2,estr1,estr2,estr3,estr4,k,k1,e2,e3
Dim fin,Ini,caso,casi,clp,esq,somma1,somma2,idestr,col,esqcol
Dim ru(3),poste(1),ambat(1),ambata(1)
Dim diff13ve,diff24ve,diff12or,diff34or,diff14in
Sub Main
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",idestr,9300)
    clp = InputBox("Per quanti colpi vuoi fare la ricerca",,4)
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,50))
    poste(1) = 1

    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol
        AvanzamentoElab esq,esqcol,es
        caso = 0
        For r1 = 1 To 10
            For r2 = r1 + 1 To 11
                If r2 = 11 Then r2 = 12
                For p1 = 1 To 4
                    For p2 = p1 + 1 To 5
                        estr1 = (Estratto(es,r1,p1))
                        estr2 = (Estratto(es,r1,p2))
                        estr3 = (Estratto(es,r2,p1))
                        estr4 = (Estratto(es,r2,p2))
                        e2 = estr2
                        e3 = estr3
                        If estr1 <> estr2 And estr1 <> estr3 And estr1 <> estr4 Then
                            If estr2 <> estr3 And estr2 <> estr4 And estr3 <> estr4 Then
                                '------------------------------------------
                                'A = estr1
                                'B = estr2
                                'C = estr3
                                'D = estr4
                                'A-----B
                                '|     |
                                '|     |
                                'C-----D
                                'A,C,D = Primo triangolo
                                'A,B,D = Secondo triangolo
                                '**************************Primo Triangolo*****************************************
                                calcoli
                                complemento90
                                If diff13ve = 45 Or diff34or = 45 Or diff12or = 45 Or diff24ve = 45 Then
                                    somma1 = diff13ve + diff34or + diff14in
                                    somma2 = diff24ve + diff12or + diff14in
                                End If
                                If somma1 <> 90 And somma2 = 90 Then
                                    caso = caso + 1
                                    casi = casi + 1
                                    preuscite
                                    uscite
                                    k = 0
                                    For k = 1 To 90
                                        diff13ve = Differenza(k,estr1)
                                        diff34or = Differenza(k,estr4)
                                        complemento90
                                        somma1 = diff14in + diff13ve + diff34or
                                        estr3 = k
                                        If somma1 = 90 Then Exit For
                                    Next
                                    Scrivi "            Sostituito il  " & Format2(e3) & " con il " & Format2(estr3)
                                    Scrivi
                                    uscite
                                    If somma1 = 90 Then
                                        ru(1) = r1
                                        ru(2) = r2
                                        ambata(1) = estr3
                                        ImpostaGiocata 1,ambata,ru,poste,clp
                                        Gioca es
                                    End If
                                End If
                                '**************************Secondo Triangolo*****************************************
                                estr3 = e3
                                calcoli
                                complemento90
                                If somma2 <> 90 And somma1 = 90 Then
                                    caso = caso + 1
                                    casi = casi + 1
                                    preuscite
                                    uscite
                                    k1 = 0
                                    For k1 = 1 To 90
                                        diff12or = Differenza(k1,estr1)
                                        diff24ve = Differenza(k1,estr4)
                                        complemento90
                                        somma2 = diff14in + diff12or + diff24ve
                                        estr2 = k1
                                        If somma2 = 90 Then Exit For
                                    Next
                                    Scrivi "            Sostituito il  " & Format2(e2) & " con il " & Format2(estr2)
                                    Scrivi
                                    uscite
                                    If somma2 = 90 Then
                                        ru(1) = r1
                                        ru(2) = r2
                                        ambat(1) = estr2
                                        ImpostaGiocata 1,ambat,ru,poste,clp
                                        Gioca es
                                    End If
                                End If
                            End If
                        End If
                    Next
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
Function preuscite
    Scrivi String(90,"*") & " Caso N" & Format2(caso) & " Estraz. " & Format2(es)
    Scrivi String(90,"*") & " Casi Totali N" & Format2(casi)
    Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
    Scrivi "  " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1) & "   Seconda Ruota "_
    & Left(NomeRuota(r2),2) & " " & StringaEstratti(es,r2)
End Function
Function uscite
    Scrivi Left(NomeRuota(r1),2) & "  " & Format2(estr1) & Space(1) & Format2(estr2),0,0
    Scrivi " Distanze Secondo Triangolo -->    ",0,0
    If somma2 = 90 Then
        ColoreTesto 1
    Else
        ColoreTesto 2
    End If
    Scrivi Format2(diff12or) & Space(5) & Format2(diff24ve)_
    & Space(5) & Format2(diff14in) & " Somma 2 = " &(somma2)
    ColoreTesto 0
    '----------------------------------------------------
    Scrivi Left(NomeRuota(r2),2) & "  " & Format2(estr3) & Space(1) & Format2(estr4),0,0
    Scrivi " Distanze Primo   Triangolo -->    ",0,0
    If somma1 = 90 Then
        ColoreTesto 1
    Else
        ColoreTesto 2
    End If
    Scrivi Format2(diff13ve) & Space(5) & Format2(diff34or)_
    & Space(5) & Format2(diff14in) & " Somma 1 = " &(somma1)
    ColoreTesto 0
    Scrivi
End Function
Function calcoli
    'differenze primo triangolo
    diff13ve = Differenza(estr1,estr3)
    diff34or = Differenza(estr3,estr4)
    'differenze secondo triangolo
    diff12or = Differenza(estr1,estr2)
    diff24ve = Differenza(estr2,estr4)
    'Differenza Diagonale fissa triagoli
    diff14in = Differenza(estr1,estr4)
End Function
Function complemento90
    If diff13ve > 45 Then diff13ve = 90 - diff13ve
    If diff34or > 45 Then diff34or = 90 - diff34or
    If diff12or > 45 Then diff12or = 90 - diff12or
    If diff24ve > 45 Then diff24ve = 90 - diff24ve
    If diff14in > 45 Then diff14in = 90 - diff14in
End Function
 
Ultima modifica:

salvo50

Advanced Member >PLATINUM PLUS<
IL PUNTO DIAMETRALE

Nelle condizioni di questo sistema, c'è che la ricerca del secondo ambo deve essere fatta dentro le 20 estrazioni successive, non sapendo come fare e non volendo disturbare, avevo deciso di farlo solo con una estrazione successiva, l'ho fatto e quando l'ho provato i risultati erano tutti vincenti, avevo stabilito una cinquantina di estrazioni per 5 colpi ciascuna, ho pensato sarà che adesso è un periodo favorevole, allora ho impostato ancora 100 estrazioni indietro, lancio lo script e di nuovo tutti rossi e vincenti, allora ho fatto ancora 1000 estrazioni indietro, controllato ad una ad una tutti i risultati, di nuovo in rosso e vincenti, a questo punto ho tolto i 5 colpi ed ho inserito per un solo colpo per ogni estrazione e di nuovo tutti vincenti, allora l'ho impostato la ricerca dal 1930 ad oggi e risultato di nuovo tutti i colpi vincenti al primo colpo, allora ho pensato che non poteva essere, ci doveva essere un errore da qualche parte nello script, non perchè non ho fiducia che possa esistere un sistema perfetto, ma perchè se fosse stato veramente così il Fabarri se ne sarebbe accorto che tutti i colpi erano vincenti alla prima estrazione, ho controllato per bene ed alla fine ho trovato l'errore.

Allora mi sono impegnato per fare la ricerca del secondo ambo dentro le 20 estrazioni successive all'uscita del primo ambo, e ci sono riuscito, posto i due script il primo è quello fasullo, il secondo è quello vero, senza errori, spero.

Il punto diametrale (Fabarri).jpg

script falso tutti vincenti

Codice:
 Dim fin,Ini,ru(2),ambata(2),posta(1)
Dim idestr,col,esqcol,diam,xdiam
Dim e1,e2,e3,e4,di1,di2,ess,k,ka
Sub Main
    posta(1) = 10
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",,3000)
    clp = CInt(InputBox("Per quanti colpi vuoi fare la ricerca",,1))
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,6300))
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol: Messaggio(es)
        AvanzamentoElab esq,esqcol,es
        ess = es + 1
        For r1 = 1 To 10
            For p1 = 1 To 4
                p2 = p1 + 1
                e1 = Estratto(es,r1,p1)
                e2 = Estratto(es,r1,p2)
                di1 = Differenza(e1,e2)
                For r2 = r1 + 1 To 11
                    If r2 = 11 Then r2 = 12
                    e3 = Estratto(ess,r2,p1)
                    e4 = Estratto(ess,r2,p2)
                    di2 = Differenza(e3,e4)
                    If di1 = di2 Then
                        ru(1) = r1
                        ru(2) = r2
                        If e1 = e3 Xor e1 = e4 Xor e2 = e3 Xor e2 = e4 Then
                            If e1 = e3 Xor e1 = e4 Then diam = e1
                            If e2 = e3 Xor e2 = e4 Then diam = e2
                            xdiam =(Diametrale(diam))
                            casi = casi + 1
                            Scrivi String(90,"*") & " Caso N " & Format2(casi) & " Estraz. ",0,0
                            ColoreTesto 2
                            Scrivi Format2(es)
                            ColoreTesto 1
                            Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
                            Scrivi " - Prima ruota    " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),0,0
                            Scrivi " - Seconda Ruota  " & Left(NomeRuota(r2),2) & " " & StringaEstratti(ess,r2),1
                            Scrivi " Ambi isotopi "
                            Scrivi "  " & Left(NomeRuota(r1),2) & " " & Format2(e1) & Space(1) & Format2(e2) & "       Vertice Comune   " & Format2(diam)
                            Scrivi "  " & Left(NomeRuota(r2),2) & " " & Format2(e3) & Space(1) & Format2(e4) & "       Diametrale       " & Format2(xdiam)
                            ColoreTesto 0
                            ambata(1) = diam
                            ambata(2) = xdiam
                            ImpostaGiocata 1,ambata,ru,posta,clp
                            Gioca es
                        End If
                    End If
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub

IL PUNTO DIAMETRALE Corretto

Codice:
 'Progetto - IL PUNTO DIAMETRALE - by FABARRI
'Script   - by Salvo50
Option Explicit
Dim r1,p1,p2,es,es1,r2,clp,esq,caso,casi,p3,p4
Dim fin,Ini,ru(2),poste(2),amb(2)
Dim idestr,col,esqcol,diam,xdiam
Dim e1,e2,e3,e4,di1,di2,ess,k,ka,ess20
Sub Main
    poste(1) = 1
    poste(2) = 1
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",,9100)
    clp = CInt(InputBox("Per quanti colpi vuoi fare la ricerca",,2))
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,30))
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol: Messaggio(es)
        AvanzamentoElab esq,esqcol,es

        caso = 0
        ess = es + 1
        ess20 = es + 20
        For ess = ess To ess20
        For r1 = 1 To 10
            For p1 = 1 To 4
                p2 = p1 + 1
                e1 = Estratto(es,r1,p1)
                e2 = Estratto(es,r1,p2)
                di1 = Differenza(e1,e2)
                If di1 > 45 Then di1 =(90 - di1)

                    For r2 = r1 + 1 To 11
                        If r2 = 11 Then r2 = 12
                        e3 = Estratto(ess,r2,p1)
                        e4 = Estratto(ess,r2,p2)
                        di2 = Differenza(e3,e4)
                        If di2 > 45 Then di2 =(90 - di2)
                        If di1 = di2 Then
                            ru(1) = r1
                            ru(2) = r2
                            If e1 = e3 Xor e1 = e4 Xor e2 = e3 Xor e2 = e4 Then
                                If e1 = e3 Xor e1 = e4 Then diam = e1
                                If e2 = e3 Xor e2 = e4 Then diam = e2
                                xdiam =(Diametrale(diam))
                                uscite
                                amb(1) = diam
                                amb(2) = xdiam
                                ImpostaGiocata 1,amb,ru,poste,clp
                                Gioca ess
                            End If
                        End If
                    Next
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
Function uscite
    caso = caso + 1
    casi = casi + 1
    ColoreTesto 1
    Scrivi String(90,"*") & " Caso N " & Format2(caso) & " Estraz. ",0,0
    ColoreTesto 2
    Scrivi Format2(es)
    ColoreTesto 1
    Scrivi String(90,"*") & " Casi Totali  N " & Format2(casi)
    Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
    Scrivi " - Prima ruota    " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),1
    Scrivi(" Estrazione n." & Format2(ess) & " del " & DataEstrazione(ess)),0,0
    Scrivi " - Seconda Ruota  " & Left(NomeRuota(r2),2) & " " & StringaEstratti(ess,r2),1
    Scrivi " Ambi isotopi "
    Scrivi "  " & Left(NomeRuota(r1),2) & " " & Format2(e1) & Space(1) & Format2(e2) & "       Vertice Comune   " & Format2(diam)
    Scrivi "  " & Left(NomeRuota(r2),2) & " " & Format2(e3) & Space(1) & Format2(e4) & "       Diametrale       " & Format2(xdiam)
    ColoreTesto 0
End Function


IL PUNTO DIAMETRALE CON SCELTA RUOTA D'INIZIO

Codice:
 'Progetto - IL PUNTO DIAMETRALE - by FABARRI
'Nome - IL PUNTO DIAMETRA CON SCELTA RUOTA D'INIZIO
'Script   - by Salvo50
Option Explicit
Dim r1,p1,p2,es,es1,r2,clp,esq,caso,casi,p3,p4
Dim fin,Ini,ru(2),poste(2),amb(2)
Dim idestr,col,esqcol,diam,xdiam,xr1
Dim e1,e2,e3,e4,di1,di2,ess,k,ka,ess20
Sub Main
    poste(1) = 1
    poste(2) = 1
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",,9000)
    clp = CInt(InputBox("Per quanti colpi vuoi fare la ricerca",,2))
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,300))
    xr1 = CInt(InputBox(" Inserisci la ruota d'inizio (1 - 10) ",,3))
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol: Messaggio(es)
        AvanzamentoElab esq,esqcol,es
        caso = 0
        ess = es + 1
        ess20 = es + 20
        r1 = xr1
        For r1 = r1 To 10
            For p1 = 1 To 4
                p2 = p1 + 1
                e1 = Estratto(es,r1,p1)
                e2 = Estratto(es,r1,p2)
                di1 = Differenza(e1,e2)
                If di1 > 45 Then di1 =(90 - di1)
                For ess = ess To ess20
                    For r2 = r1 + 1 To 11
                        If r2 = 11 Then r2 = 12
                        e3 = Estratto(ess,r2,p1)
                        e4 = Estratto(ess,r2,p2)
                        di2 = Differenza(e3,e4)
                        If di2 > 45 Then di2 =(90 - di2)
                        If di1 = di2 Then
                            ru(1) = r1
                            ru(2) = r2
                            If e1 = e3 Xor e1 = e4 Xor e2 = e3 Xor e2 = e4 Then
                                If e1 = e3 Xor e1 = e4 Then diam = e1
                                If e2 = e3 Xor e2 = e4 Then diam = e2
                                xdiam =(Diametrale(diam))
                                uscite
                                amb(1) = diam
                                amb(2) = xdiam
                                ImpostaGiocata 1,amb,ru,poste,clp
                                Gioca ess
                            End If
                        End If
                    Next
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
Function uscite
    caso = caso + 1
    casi = casi + 1
    ColoreTesto 1
    Scrivi String(90,"*") & " Caso N " & Format2(caso) & " Estraz. ",0,0
    ColoreTesto 2
    Scrivi Format2(es)
    ColoreTesto 1
    Scrivi String(90,"*") & " Casi Totali  N " & Format2(casi)
    Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
    Scrivi " - Prima ruota    " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),1
    Scrivi(" Estrazione n." & Format2(ess) & " del " & DataEstrazione(ess)),0,0
    Scrivi " - Seconda Ruota  " & Left(NomeRuota(r2),2) & " " & StringaEstratti(ess,r2),1
    Scrivi " Ambi isotopi "
    Scrivi "  " & Left(NomeRuota(r1),2) & " " & Format2(e1) & Space(1) & Format2(e2) & "       Vertice Comune   " & Format2(diam)
    Scrivi "  " & Left(NomeRuota(r2),2) & " " & Format2(e3) & Space(1) & Format2(e4) & "       Diametrale       " & Format2(xdiam)
    ColoreTesto 0
End Function


IL PUNTO DIAMETRALE - con aggiunta di 3 numeri fissi a scelta
Codice:
'Progetto - IL PUNTO DIAMETRALE - by FABARRI
'Modifica aggiungere 3 numeri fissi - by Serpico 90
'Script   - by Salvo50
Option Explicit
Dim r1,p1,p2,es,es1,r2,clp,esq,caso,casi,p3,p4
Dim fin,Ini,ru(2),poste(5),amb(5),amba(2),posta(2)
Dim idestr,col,esqcol,diam,xdiam
Dim e1,e2,e3,e4,di1,di2,ess,k,ka,ess20
Dim n3,n4,n5
Sub Main
    posta(1) = 1
    posta(2) = 1
    poste(2) = 1
    poste(3) = 1
    poste(4) = 1
    poste(5) = 0.5
    fin = EstrazioneFin
    esq = InputBox("Inserisci l'estrazione che vuoi iniziare",,9000)
    clp = CInt(InputBox("Per quanti colpi vuoi fare la ricerca",,2))
    col = CInt(InputBox(" Quante estrazioni vuoi controllare ",,300))
    n3 = CInt(InputBox(" Inserisci il primo numero ",,45))
    n4 = CInt(InputBox(" Inserisci il secondo numero ",,54))
    n5 = CInt(InputBox(" Inserisci il terzo numero ",,90))
    esqcol = esq + col
    If esqcol > fin Then esqcol = fin
    For es = esq To esqcol: Messaggio(es)
        AvanzamentoElab esq,esqcol,es
        caso = 0
        ess = es + 1
        ess20 = es + 20
        For ess = ess To ess20
            For r1 = 1 To 10
                For p1 = 1 To 4
                    p2 = p1 + 1
                    e1 = Estratto(es,r1,p1)
                    e2 = Estratto(es,r1,p2)
                    di1 = Differenza(e1,e2)
                    If di1 > 45 Then di1 =(90 - di1)
                    For r2 = r1 + 1 To 11
                        If r2 = 11 Then r2 = 12
                        e3 = Estratto(ess,r2,p1)
                        e4 = Estratto(ess,r2,p2)
                        di2 = Differenza(e3,e4)
                        If di2 > 45 Then di2 =(90 - di2)
                        If di1 = di2 Then
                            ru(1) = r1
                            ru(2) = r2
                            If e1 = e3 Xor e1 = e4 Xor e2 = e3 Xor e2 = e4 Then
                                If e1 = e3 Xor e1 = e4 Then diam = e1
                                If e2 = e3 Xor e2 = e4 Then diam = e2
                                xdiam =(Diametrale(diam))
                                uscite
                                amba(1) = diam
                                amba(2) = xdiam
                                amb(1) = diam
                                amb(2) = xdiam
                                amb(3) = n3
                                amb(4) = n4
                                amb(5) = n5
                                ImpostaGiocata 1,amba,ru,posta,clp
                                EliminaRipetuti amb
                                ImpostaGiocata 2,amb,ru,poste,clp
                                Gioca es
                            End If
                        End If
                    Next
                Next
            Next
        Next
    Next
    ScriviResoconto
End Sub
Function uscite
    caso = caso + 1
    casi = casi + 1
    ColoreTesto 1
    Scrivi String(90,"*") & " Caso N " & Format2(caso) & " Estraz. ",0,0
    ColoreTesto 2
    Scrivi Format2(es)
    ColoreTesto 1
    Scrivi String(90,"*") & " Casi Totali  N " & Format2(casi)
    Scrivi(" Estrazione n." & Format2(es) & " del " & DataEstrazione(es)),0,0
    Scrivi " - Prima ruota    " & Left(NomeRuota(r1),2) & " " & StringaEstratti(es,r1),1
    Scrivi(" Estrazione n." & Format2(ess) & " del " & DataEstrazione(ess)),0,0
    Scrivi " - Seconda Ruota  " & Left(NomeRuota(r2),2) & " " & StringaEstratti(ess,r2),1
    Scrivi " Ambi isotopi "
    Scrivi "  " & Left(NomeRuota(r1),2) & " " & Format2(e1) & Space(1) & Format2(e2) & "       Vertice Comune   " & Format2(diam)
    Scrivi "  " & Left(NomeRuota(r2),2) & " " & Format2(e3) & Space(1) & Format2(e4) & "       Diametrale       " & Format2(xdiam)
    ColoreTesto 0
End Function
 
Ultima modifica:

Ultima estrazione Lotto

  • Estrazione del lotto
    giovedì 28 marzo 2024
    Bari
    49
    73
    67
    86
    19
    Cagliari
    64
    36
    37
    02
    04
    Firenze
    66
    27
    44
    90
    17
    Genova
    09
    44
    78
    85
    19
    Milano
    70
    14
    47
    38
    27
    Napoli
    80
    29
    28
    45
    39
    Palermo
    54
    59
    78
    47
    62
    Roma
    17
    22
    49
    52
    88
    Torino
    71
    35
    75
    74
    60
    Venezia
    40
    84
    02
    63
    29
    Nazionale
    08
    13
    44
    69
    85
    Estrazione Simbolotto
    Firenze
    06
    35
    16
    18
    05
Alto