Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.

Option Explicit
Sub Main
   Dim FIn,Ini,A,B,C,Clp,Es,Salvo50
   Dim R1,R2,P1,P2,P3,Caso,Casi
   Dim DistAB,DistAC,DistBC
   Dim Amba(1),Ambo(2),Ruo1(2),RuoT(1)
   Dim Po1(1),Po2(5)
   FIn = EstrazioneFin
   Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,10701))
   Clp = CInt(InputBox(" Per quanti colpi vuoi giocare?",Salvo50,7))
   ' Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(18) & "Metodo CicloGeometrico di Zetrx - Script Salvo50" & Space(18),1,,4,,3,,1
   Po1(1) = 1
   Po2(2) = 1
   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 5
            A = Estratto(Es,R1,P1)
            For R2 = 1 To 12
               If R1 = 11 Then R1 = 12
               If R1 <> R2 Then
                  For P2 = 1 To 4
                     For P3 = P2 + 1 To 5
                        If P1 = P2 Or P1 = P3 Then
                           B = Estratto(Es,R2,P2)
                           C = Estratto(Es,R2,P3)
                           If A > 0 And C > 0 And A <> B And A <> C Then
                              DistAB = Distanza(A,B) : DistAC = Distanza(A,C) : DistBC = Distanza(B,C)
                              If DistBC = 24 Then
                                 If((DistAB = 6) And(P1 = P2))Or((DistAC = 6) And(P1 = P3))Then
                                    Amba(1) = Fuori90(A + 36)
                                    Ambo(1) = A : Ambo(2) = Amba(1)
                                    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
                                    ReDim MatrCasella(3,1)
                                    MatrCasella(1,0) = R1
                                    MatrCasella(1,1) = P1
                                    MatrCasella(2,0) = R2
                                    MatrCasella(2,1) = P2
                                    MatrCasella(3,0) = R2
                                    MatrCasella(3,1) = P3
                                    Call DisegnaEstrazione(Es,MatrCasella,,vbBlue)
                                    Scrivi
                                    Scrivi
                                    Ruo1(1) = R1 : Ruo1(2) = R2 : RuoT(1) = TT_
                                    ImpostaGiocata 1,Amba,Ruo1,Po1,Clp,1
                                    ImpostaGiocata 2,Ambo,RuoT,Po2,Clp,2
                                    Gioca Es
                                 End If
                              End If
                           End If
                        End If
                     Next
                  Next
               End If
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End SubOption Explicit
Sub Main
   Dim FIn,Ini,A,B,C,Clp,Es,Salvo50
   Dim R1,R2,P1,P2,P3,P5,Caso,Casi
   Dim DistAB,DistAC,DistBC,X
   Dim Amba(1),Ambo(2),Ruo1(2),RuoT(2)
   Dim Po1(1),Po2(2),DT1,DT2,DT3,DT4
   Dim Ambo1(2),Ambo2(2),Ambo3(2),Ambo4(2)
   FIn = EstrazioneFin
   Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,2620))
   'Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(18) & "Metodo CicloGeom di Zetrix - Script Salvo50" & Space(18),1,,4,,3,,1
   Po1(1) = 1
   Po2(2) = 1
   For Es = Ini To FIn
      Messaggio Es
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For R1 = 1 To 10
         For R2 = R1 + 1 To 12
            If R2 = 11 Then R2 = 12
            For P1 = 2 To 5
               For P5 = 1 To 4
                  A = Estratto(Es,R1,P1)
                  For P2 = 1 To 4
                     For P3 = P2 + 1 To 5
                        B = Estratto(Es,R2,P2)
                        C = Estratto(Es,R2,P3)
                        X = Estratto(Es,R1,P5)
                        If Distanza(B,C) = 24 Then
                           If P5 = P2 Then
                              If Distanza(A,C) = 4 And(P1 = P3) And Distanza(A,B) = 28 _
                                 Or Distanza(A,C) = 6 And(P1 = P3) And Distanza(A,B) = 30 _
                                 Or Distanza(A,C) = 8 And(P1 = P3) And Distanza(A,B) = 32 Then
                                 DT1 = DiametraleD(X) : DT2 = Diametrale(DT1) : DT3 = DiametraleD(DT2)
                                 DT4 = Diametrale(X)
                                 Amba(1) = Fuori90(B + C - A)
                                 Ambo1(1) = Amba(1)
                                 Ambo1(2) = DT1
                                 Ambo2(1) = Amba(1)
                                 Ambo2(2) = DT2
                                 Ambo3(1) = Amba(1)
                                 Ambo3(2) = DT3
                                 Ambo4(1) = Amba(1)
                                 Ambo4(2) = DT4
                                 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
                                 ReDim MatrCasella(3,1)
                                 MatrCasella(1,0) = R1
                                 MatrCasella(1,1) = P1
                                 MatrCasella(2,0) = R2
                                 MatrCasella(2,1) = P2
                                 MatrCasella(3,0) = R2
                                 MatrCasella(3,1) = P3
                                 Call DisegnaEstrazione(Es,MatrCasella,,vbBlue)
                                 Scrivi
                                 Scrivi
                                 Ruo1(1) = R1 : Ruo1(2) = R2
                                 RuoT(1) = TT_ : RuoT(2) = NZ_
                                 ImpostaGiocata 1,Amba,Ruo1,Po1,9,1
                                 Gioca Es,1,,1
                                 Scrivi String(55,"-"),0,1
                                 Scrivi
                                 ImpostaGiocata 1,Ambo1,RuoT,Po2,10,2
                                 ImpostaGiocata 2,Ambo2,RuoT,Po2,10,2
                                 ImpostaGiocata 3,Ambo3,RuoT,Po2,10,2
                                 ImpostaGiocata 4,Ambo4,RuoT,Po2,10,2
                                 Gioca Es,1,,1
                              End If
                           End If
                        End If
                     Next
                  Next
               Next
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   'ScriviResoconto
End Sub



Option Explicit
Sub Main
   Dim FIn,Ini,A,B,C,Clp,Es,Salvo50
   Dim R1,R2,P1,P2,P3,P5,Caso,Casi
   Dim DistAB,DistAC,DistBC,X
   Dim Amba(1),Ambo(2),Ruo1(2),RuoT(2)
   Dim Po1(1),Po2(2),DT1,DT2,DT3,DT4
   Dim Ambo1(2),Ambo2(2),Ambo3(2),Ambo4(2)
   FIn = EstrazioneFin
   Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,2620))
   'Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(18) & "Metodo CicloGeom di Zetrix - Script Salvo50" & Space(18),1,,4,,3,,1
   Po1(1) = 1
   Po2(2) = 1
   For Es = Ini To FIn
      Messaggio Es
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For R1 = 1 To 10
         For R2 = R1 + 1 To 12
            If R2 = 11 Then R2 = 12
            For P1 = 1 To 5
               For P5 = 1 To 5
                  A = Estratto(Es,R1,P1)
                  For P2 = 1 To 5
                     For P3 = 1 To 5
                        B = Estratto(Es,R2,P2)
                        C = Estratto(Es,R2,P3)
                        X = Estratto(Es,R1,P5)
                        If Distanza(B,C) = 24 Or Distanza(B,C) = 16 Then
                           If P5 = P2 Then
                              If Distanza(A,C) = 4 And(P1 = P3) And Distanza(A,B) = 28 _
                                 Or Distanza(A,C) = 28 And(P1 = P3) And Distanza(A,B) = 4 _
                                 Or Distanza(A,C) = 6 And(P1 = P3) And Distanza(A,B) = 30 _
                                 Or Distanza(A,C) = 30 And(P1 = P3) And Distanza(A,B) = 6 _
                                 Or Distanza(A,C) = 8 And(P1 = P3) And Distanza(A,B) = 32 _
                                 Or Distanza(A,C) = 32 And(P1 = P3) And Distanza(A,B) = 8 _
                                 Or Distanza(A,C) = 8 And(P1 = P3) And Distanza(A,B) = 24 _
                                 Or Distanza(A,C) = 24 And(P1 = P3) And Distanza(A,B) = 8 Then
                                 DT1 = DiametraleD(X) : DT2 = Diametrale(DT1) : DT3 = DiametraleD(DT2)
                                 DT4 = Diametrale(X)
                                 Amba(1) = Fuori90(B + C - A)
                                 Ambo1(1) = Amba(1)
                                 Ambo1(2) = DT1
                                 Ambo2(1) = Amba(1)
                                 Ambo2(2) = DT2
                                 Ambo3(1) = Amba(1)
                                 Ambo3(2) = DT3
                                 Ambo4(1) = Amba(1)
                                 Ambo4(2) = DT4
                                 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
                                 ReDim MatriceCaselleDaEvid(4,1)
                                 MatriceCaselleDaEvid(1,0) = R1
                                 MatriceCaselleDaEvid(1,1) = P1
                                 MatriceCaselleDaEvid(2,0) = R2
                                 MatriceCaselleDaEvid(2,1) = P2
                                 MatriceCaselleDaEvid(3,0) = R2
                                 MatriceCaselleDaEvid(3,1) = P3
                                 ReDim MatriceLegami(6,3)
                                 '
                                 MatriceLegami(1,0) = R1
                                 MatriceLegami(1,1) = P1
                                 If R2 = 12 Then MatriceLegami(1,2) = R2 - 1 Else MatriceLegami(1,2) = R2
                                 MatriceLegami(1,3) = P2
                                 If R2 = 12 Then MatriceLegami(2,0) = R2 - 1 Else MatriceLegami(2,0) = R2
                                 MatriceLegami(2,1) = P2
                                 If R2 = 12 Then MatriceLegami(2,2) = R2 - 1 Else MatriceLegami(2,2) = R2
                                 MatriceLegami(2,3) = P3
                                 MatriceLegami(3,0) = R1
                                 MatriceLegami(3,1) = P1
                                 If R2 = 12 Then MatriceLegami(3,2) = R2 - 1 Else MatriceLegami(3,2) = R2
                                 MatriceLegami(3,3) = P3
                                 Call DisegnaEstrazione(Es,MatriceCaselleDaEvid,MatriceLegami)
                                 '
                                 Scrivi
                                 Scrivi
                                 Ruo1(1) = R1 : Ruo1(2) = R2
                                 RuoT(1) = TT_ : RuoT(2) = NZ_
                                 ImpostaGiocata 1,Amba,Ruo1,Po1,9,1
                                 Gioca Es,1,,1
                                 Scrivi String(55,"-"),0,1
                                 Scrivi
                                 ImpostaGiocata 1,Ambo1,RuoT,Po2,10,2
                                 ImpostaGiocata 2,Ambo2,RuoT,Po2,10,2
                                 ImpostaGiocata 3,Ambo3,RuoT,Po2,10,2
                                 ImpostaGiocata 4,Ambo4,RuoT,Po2,10,2
                                 Gioca Es,1,,1
                              End If
                           End If
                        End If
                     Next
                  Next
               Next
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   'ScriviResoconto
End Sub 
     
     
     
    