mirror of
https://github.com/sigmasternchen/combinationLockPG
synced 2025-03-15 11:38:55 +00:00
trivial, but now we have it. ^^
This commit is contained in:
parent
c0757bd7cf
commit
25fcabba72
1 changed files with 7 additions and 0 deletions
7
code.js
Normal file
7
code.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
var code = new Array();
|
||||||
|
|
||||||
|
var fuzzyRadius = 5;
|
||||||
|
|
||||||
|
var checkCode = function(num, value) {
|
||||||
|
return (Math.abs(code[num] - value) < fuzzyRadius);
|
||||||
|
}
|
Loading…
Reference in a new issue