Giter VIP home page Giter VIP logo

decombinator's People

Contributors

blugeni avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

decombinator's Issues

Program will not run/button doesn't respond

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:

  1. When I am done uploading the code, the serial monitor is continuously showing "Decombinator" and doesn't stop.
    program start

  2. There is no response from the start button at all (the other buttons, (move and combo found) seems to respond)
    move button
    button three

Here is the serial output from the other version:
other

Loops seem to be obviously wrong: [3] instead of [2]

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.