Novità

ambo somme uguali su ruota (da script di Salvo50)

kubes

Senior Member
Ciao salvo50 in questo tuo script puoi mettere questa modifica ? grazie .

Codice:
Option Explicit
Sub Main
   Dim Es,Fin,R1,A,B,C,D,E1,Clp1,Clp2
   Dim P1,P2,P3,P4,P5,Caso,Casi,Ini,Somma
   Dim Som1,Som2,Som3,Som4,Som5,Som6
   Dim Ambata(1),Ambo1(2),Ambo2(2),Ambo3(2)
   Dim Ambo4(2),Ruota(1),Posta(1),Poste(2)
   Dim Ruote(1)
   Posta(1) = 1
   Poste(2) = 1
   Fin = EstrazioneFin
   Clp1 = InputBox(" Per quanti colpi vuoi giocare l'ambata? ",,6)
   Clp2 = InputBox("Per quanti colpi vuoi giocare gli ambi?",,6)
   Ini = InputBox("Da quale estrazione vuoi iniziare?",,8051)
   Call ScegliRange(Ini,Fin,Ini,EstrazioneFin)
   For Es = Ini To Fin
      Caso = 0
      For R1 = 1 To 12
         If R1 = 11 Then R1 = 12
         For P1 = 1 To 2
            For P2 = P1 + 1 To 3
               For P3 = P2 + 1 To 4
                  For P4 = P3 + 1 To 5
                     A = Estratto(Es,R1,P1)
                     B = Estratto(Es,R1,P2)
                     C = Estratto(Es,R1,P3)
                     D = Estratto(Es,R1,P4)
                     Som1 = Fuori90(A + B) : Som2 = Fuori90(C + D)
                     Som3 = Fuori90(A + C) : Som4 = Fuori90(B + D)
                     Som5 = Fuori90(A + D) : Som6 = Fuori90(B + C)
                     If Som1 = Som2 Or Som3 = Som4 Or Som5 = Som6 Then
                        If Som1 = Som2 Then Somma = Format2(A) & " + " & Format2(B) & " = " & Format2(Som1) & "  e  " & Format2(C) & " + " & Format2(D) & " = " & Format2(Som2)
                        If Som3 = Som4 Then Somma = Format2(A) & " + " & Format2(C) & " = " & Format2(Som3) & "  e  " & Format2(B) & " + " & Format2(D) & " = " & Format2(Som4)
                        If Som5 = Som6 Then Somma = Format2(A) & " + " & Format2(D) & " = " & Format2(Som5) & "  e  " & Format2(B) & " + " & Format2(C) & " = " & Format2(Som6)
                        Caso = Caso + 1
                        Casi = Casi + 1
                        ColoreTesto 1
                        Scrivi String(89,"*") & " Casi Totali " & FormattaStringa(Casi,"0000")
                        ColoreTesto 2
                        Scrivi String(80,"*") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000")
                        ColoreTesto 0
                        Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                        Scrivi "  " & SiglaRuota(R1) & " ",1,0
                        For P5 = 1 To 5
                           E1 = Estratto(Es,R1,P5)
                           If E1 = A Or E1 = B Or E1 = C Or E1 = D Then
                              ColoreTesto 2
                           Else
                              ColoreTesto 0
                           End If
                           Scrivi Format2(E1) & " ",1,0
                           ColoreTesto 0
                        Next
                        Scrivi
                        Scrivi
                        ColoreTesto 2
                        Scrivi Space(10) & "Somme con il fuori90    " &(Somma),1
                        ColoreTesto 0
                        Scrivi
                        Ruota(1) = R1
                        Ruote(1) = TT_
                        Ambata(1) = Som1
                        ImpostaGiocata 1,Ambata,Ruota,Posta,Clp1
                        'Ambo1(1) = Som1 : Ambo1(2) = A
                        'ImpostaGiocata 2,Ambo1,Ruote,Poste,Clp2
                       ' Ambo2(1) = Som1 : Ambo2(2) = B
                      '  ImpostaGiocata 3,Ambo2,Ruote,Poste,Clp2
                     '   Ambo3(1) = Som1 : Ambo3(2) = C
                    '    ImpostaGiocata 4,Ambo3,Ruote,Poste,Clp2
                   '     Ambo4(1) = Som1 : Ambo4(2) = D
                  '      ImpostaGiocata 5,Ambo4,Ruote,Poste,Clp2
                        Gioca Es
                     End If
                  Next
               Next
            Next
         Next
      Next
   Next
   ScriviResoconto
End Sub


esempio estrazione di martedi 14 Aprile 2009 estrazione 8051
Napoli 83 88 80 75 20

ambo 83.80 = somma 73
ambo 88.75 = somma 73

differenze diagonali
83-75 = 8
88-80 = 8

differenze verticali
88-83 = 5
80-75 = 5

differenza tra diagonali e verticali
Elemento A = 8-5 = 3

Calcolo Ambata = somma comune - Elemento A
Ambata = 73-3 = 70

Abbinamento 1° = 90-somma
Abb.1° = 90-73 = 17

Abbinamento 2° = Vertibile Abb.1°
Abb.2° = 71


Previsione
NAPOLI
70
70-17
70-71
17-70-71
 
Ciao a Tutti

Calcolo Ambata = somma comune - Elemento A
Ambata = 73-3 = 70

Se l'elemento A è più alto di somma comune come procediamo?
 
salvo50;n2168051 ha scritto:
Ciao a Tutti

Calcolo Ambata = somma comune - Elemento A
Ambata = 73-3 = 70

Se l'elemento A è più alto di somma comune come procediamo?

buongiorno salvo , che lo script faccia automaticamente il maggiore-il minore
 
Ultima modifica:
Ciao Kubes

Codice:
 Option Explicit
Sub Main
   Dim Es,Fin,R1,A,B,C,D,E1,Clp1,Clp2
   Dim P1,P2,P3,P4,P5,Caso,Casi,Ini,Salvo50
   Dim Som1,Som2,Som3,Som4,Som5,Som6,SomOr2
   Dim DifDiag1,DifDiag2,DifVert1,DifVert2
   Dim SD1,Ok,SomOr1,Abb1,Abb2,X1,X2,X3,X4
   Dim Ambata(1),Ambo1(2),Ambo2(2),Terno(3)
   Dim Ruota(1),Posta(1),Poste(2),Ruote(2)
   Posta(1) = 1
   Poste(2) = 1
   Fin = EstrazioneFin
   Clp1 = InputBox(" Per quanti colpi vuoi giocare l'ambata? ",Salvo50,6)
   Clp2 = InputBox("Per quanti colpi vuoi giocare gli ambi?",Salvo50,13)
   Ini = InputBox("Da quale estrazione vuoi iniziare?",Salvo50,9600)'8051 esempio da Kubes su ruota Napoli
   Call ScegliRange(Ini,Fin,Ini,Fin)
   For Es = Ini To Fin
      Messaggio Es
      AvanzamentoElab Ini,Fin,Es
      Caso = 0
      For R1 = 1 To 12
         If R1 = 11 Then R1 = 12
         For P1 = 1 To 2
            For P2 = P1 + 1 To 3
               For P3 = P2 + 1 To 4
                  For P4 = P3 + 1 To 5
                     A = Estratto(Es,R1,P1)
                     B = Estratto(Es,R1,P2)
                     C = Estratto(Es,R1,P3)
                     D = Estratto(Es,R1,P4)
                     Som1 = Fuori90(A + B) : Som2 = Fuori90(C + D)
                     Som3 = Fuori90(A + C) : Som4 = Fuori90(B + D)
                     Som5 = Fuori90(A + D) : Som6 = Fuori90(B + C)
                     If Som1 = Som2 Xor Som3 = Som4 Xor Som5 = Som6 Then
                        Ok = 0
                        If Som1 = Som2 Then
                           SomOr1 = Som1 : SomOr2 = Som2
                           X1 = A : X2 = B : X3 = C : X4 = D
                           DifDiag1 = Differenza(A,D) : DifDiag2 = Differenza(B,C)
                           DifVert1 = Differenza(A,C) : DifVert2 = Differenza(B,D)
                           If DifDiag1 = DifDiag2 And DifVert1 = DifVert2 Then SD1 = Differenza(DifDiag1,DifVert1) : Ok = 1
                        End If
                        If Som3 = Som4 Then
                           SomOr1 = Som3 : SomOr2 = Som4
                           X1 = A : X2 = C : X3 = B : X4 = D
                           DifDiag1 = Differenza(A,D) : DifDiag2 = Differenza(B,C)
                           DifVert1 = Differenza(A,B) : DifVert2 = Differenza(C,D)
                           If DifDiag1 = DifDiag2 And DifVert1 = DifVert2 Then SD1 = Differenza(DifDiag1,DifVert1) : Ok = 1
                        End If
                        If Som5 = Som6 Then
                           SomOr1 = Som5 : SomOr2 = Som6
                           X1 = A : X2 = D : X3 = B : X4 = C
                           DifDiag1 = Differenza(A,C) : DifDiag2 = Differenza(B,D)
                           DifVert1 = Differenza(A,B) : DifVert2 = Differenza(C,D)
                           If DifDiag1 = DifDiag2 And DifVert1 = DifVert2 Then SD1 = Differenza(DifDiag1,DifVert1) : Ok = 1
                        End If
                        If Ok = 1 Then
                           Ambata(1) = Differenza(SomOr1,SD1)
                           Abb1 = ComplAdX(SomOr1)
                           Abb2 = Vert(Abb1)
                           Caso = Caso + 1
                           Casi = Casi + 1
                           Scrivi String(89,"*") & " Casi Totali " & FormattaStringa(Casi,"0000"),1,,,1
                           Scrivi String(80,"*") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000"),1,,,2
                           Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                           Scrivi "  " & SiglaRuota(R1) & " ",1,0
                           For P5 = 1 To 5
                              E1 = Estratto(Es,R1,P5)
                              If E1 = A Or E1 = B Or E1 = C Or E1 = D Then
                                 ColoreTesto 2
                              Else
                                 ColoreTesto 0
                              End If
                              Scrivi Format2(E1) & " ",1,0
                              ColoreTesto 0
                           Next
                           Scrivi
                           Scrivi
                           Scrivi Space(7) & "Estratti " & Space(7) & "Somme Oriz. " & Space(4) & "Diff.Vert. ",1,0
                           Scrivi Space(4) & " Diff.Diag.",1
                           Scrivi Space(8) & Format2(X1) & " " & Format2(X2) & Space(13) & Format2(SomOr1),1,0
                           Scrivi Space(14) & Format2(DifVert1) & Space(14) & Format2(DifDiag1),1
                           Scrivi Space(8) & Format2(X3) & " " & Format2(X4) & Space(13) & Format2(SomOr2),1,0
                           Scrivi Space(14) & Format2(DifVert2) & Space(14) & Format2(DifDiag2),1
                           Scrivi
                           Ruota(1) = R1
                           Ruote(1) = R1
                           Ruote(2) = TT_
                           ImpostaGiocata 1,Ambata,Ruota,Posta,Clp1
                           Ambo1(1) = Ambata(1) : Ambo1(2) = Abb1
                           ImpostaGiocata 2,Ambo1,Ruota,Poste,Clp2
                           Ambo2(1) = Ambata(1) : Ambo2(2) = Abb2
                           ImpostaGiocata 3,Ambo2,Ruota,Poste,Clp2
                           Terno(1) = Ambata(1) : Terno(2) = Abb1 : Terno(3) = Abb2
                           ImpostaGiocata 4,Terno,Ruote,Poste,Clp2
                           Gioca Es
                        End If
                     End If
                  Next
               Next
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End Sub
 
Ultima modifica:
Salve , ho cercato di risalire alla prev.di Venezia 25.52 ma non sono riuscita a trovare gli stessi numeri, ci sono diverse combinazioni sulla ruota veneta ma nn mi hanno dato la stessa prev.sicuramente sbaglio io qualcosa ( conti fatti a penna ) .Potreste spiegarmi i vari passaggi x favore?
Inoltre nell'ultima estrazione su pa ci dovrebbe essere una condizione, doppia somma 82, quali sono i numeri che si ottengono ? Grazie mille a chi risponderà .
 

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 12 luglio 2025
    Bari
    67
    30
    66
    89
    47
    Cagliari
    06
    66
    33
    32
    37
    Firenze
    43
    25
    78
    21
    23
    Genova
    34
    20
    85
    52
    33
    Milano
    36
    19
    02
    70
    77
    Napoli
    21
    72
    74
    15
    53
    Palermo
    32
    08
    37
    02
    86
    Roma
    27
    32
    12
    67
    06
    Torino
    45
    47
    08
    13
    32
    Venezia
    29
    34
    19
    51
    53
    Nazionale
    34
    18
    56
    47
    85
    Estrazione Simbolotto
    Nazionale
    02
    26
    01
    08
    17
Indietro
Alto