Page 1 of 1

patternlock

PostPosted: Sun Aug 22, 2021 7:51 am
by Otto
Image

Re: patternlock

PostPosted: Sun Aug 22, 2021 9:17 am
by Antonio Linares
Dear Otto,

I think that the amount of possibilities is low, so users may "guess" other users on several tries

Code: Select all  Expand view
function Main()

   ? NCombinations( 9, [from 3 to 9] )

   // and I think the above is not correct as several solutions may be impossible

return nil

function NFactorial( n )

   local nResult  := 1
   local x
   
   for x = n to 1 step -1
      nResult := nResult * x
   Next x

return nResult

function NCombinations( n, m )

return nFactorial( n ) / ( nFactorial( m ) * nFactorial ( n - m ) )

Re: patternlock

PostPosted: Sun Aug 22, 2021 9:25 am
by Otto
Dear Antonio,
Thank you.
Maybe you can post an example that is safe and works.
It would be great.
Thanks in advane.
Best regards,
Otto

Edit:
I did some more tests and I think it is save but you have to tune it.


Image

Re: patternlock

PostPosted: Sun Aug 22, 2021 10:32 am
by Antonio Linares
Dear Otto,

I think that 4 x 4 dots would be safer

Android uses it (I would say it is 4x4 also)