blugeni / decombinator Goto Github PK
View Code? Open in Web Editor NEWA fun exercise to brute for a master lock combination if you forgot it.
License: GNU General Public License v3.0
A fun exercise to brute for a master lock combination if you forgot it.
License: GNU General Public License v3.0
The loops seem to be obviously wrong:
for (combo[3] = 0; combo[3] < 40; combo[3]++) {
for (combo[0] = combo[3] % 4; combo[0] < 40; combo[0] += 4) {
for (combo[1] = combo[0] + 2; combo[1] < 40; combo[1] += 4) {
[...]
I printed out the variations, and you have many doublettes, because you never write into the third array.
This could be a simple mistake ([3] instead of [2], but what did you wanted to achive with the mod 4 ,+4,+2?
Was your intention to test less, than the 64000 possible combos?
The trivial loop would look like this:
for (combo[0] = 0; combo[0] < 40; combo[0]++) {
for (combo[1] = 0; combo[1] < 40; combo[1] ++) {
for (combo[2] = 0; combo[2] < 40; combo[2] ++) {
[...]
of cause testing impossible combinations, so I just wanted to check in, what you intended with your approach.
I seem to be experiencing some issues with the code. Using the code from your site seems to work (i.e. the oled shows the current number being tested and all buttons respond as they should). I didn't see any pin changes between the two versions.
Issues I am experiencing with the code on github:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.