combinationLockPG/code.js

8 lines
141 B
JavaScript
Raw Normal View History

2014-03-17 19:55:26 +00:00
var code = new Array();
var fuzzyRadius = 5;
var checkCode = function(num, value) {
return (Math.abs(code[num] - value) < fuzzyRadius);
}