Skip Navigation

User banner
Posts
90
Comments
197
Joined
2 yr. ago

  • I have made some updates that may concern you:


    UPDATES:

    1. The directory structure of the program has been updated. Instead of keeping everything in ~git/magic-tape/, now various files and directories are kept in various places.This way,
    • the magic-tape.sh is in ~/.local/bin/
    • the magic-tape cache files are all in ~/.cache/magic-tape/
    • the configuration text file will be created in ~/.config/magic-tape/
    1. The action selection can be either with rofi, or fzf (if the user wants to go full TUI).This can be configured during the P option of the misc menu.

    So if you want to go full tui, you can avoid rofi and go full fzf.

    Let me know how it goes if you try.

  • With great beard comes great responibility. Thanks!

  • A friend of a friend (perhaps of another friend) gave me an old mac, 32 bit, no battery.

    After mint quitting 32-bit, I have now mx on it.

    During the winters this machine makes a cozy atmosphere...

  • Thanks! It don't see why not is not doable, writing out the found data from the C script to a file,parse the file to get the value of each square. From there, either create a label for each square and rewrite the whole puzzle with append, or fill with layers. This might work.

  • may wanna put a disclaimer that the script requires a GUI application rofi.

    This is clearly stated in the instructions, and in the dependencies.

    https://imgur.com/Anr1SSh.png

    You might consider always read the instructions before installing anything.

  • I think that apart from not installing the dependencies, both problems that you have faced in your machine (zsh-bash conflict, headless machine) are beyond the scope of this script and need to be examined individually.

    At the end of the day, one could easily substitute rofi with fzf itself in the script, they do more or less the same job. I am not certain rofi is your main obstacle here.

  • Yup you are right, I fixed it.

    The third 0-9 remains however, you can put 0 value to a square when you want to erase an error.

  • I admire your dedication to this game.

    I remember last year for 2 to 3 months, I was swimming in deep C language ( I was-and still am- a novice), initially starting to build the solver. From there, I moved on to create a sudoku generator, and finally to a sudoku game program, all in C. Perhaps a right way forward for you is to go backwards. While you know what you want, get a solved riddle, and then with your condition in mind, move backwards, taking out the numbers that fall into that condition, and thus create an interesting, for you at least, riddle.

    Finally, when you have walked the algorithm yourself, it is time to code.

    It seems a great but fascinating task.

    I always think that in every impossible and unsolvable riddle, there is a logical way forward that escapes me. And while reductio ad absurdum is an inferior, weak and low-level logical method, it remains a logical method nonetheless, that in the end of the day, gets the job done.

  • By guessing I imagine that you refer to the situation when you reach a point, where all logic paths are a dead-end; all except one: reductio ad absurdum, or apagogical statememt. In this case you claim (guess) that a square has a specific, and begin to solve the rest as if that claim was valid. If things work, all is well, if not you prove that claim invalid, go back and start with an alternative value.

    I am not that deep into sudoku solving to make a script to generate sudoku riddles that do or don't include this logic method. This script only brute forces all possible combinations, until it reaches the solution.

    I have no clue how that could be coded but I’d like to learn how to approach such a problem

    You and me both!

  • It sems to me that there were a few ommisions made during the installation of this script from your part.

    If I were you, I would remove the whole git/magic-tape folder, and re-install the script, this following the detailed instructions from the README.

    There are specific commands that take care of the dependencies, and of the directory structure.

    Do that, and the chances are that you will have no problems.

  • You can open the P option by either double-clicking on it with the mouse, or entering capital P with the keyboard. You can get to select the P option through the misc menu.

    Do you get any error messages when doing so?

    Have you installed all the dependencies of the script (rofi in particular)?

  • On Debian, what preference values have you entered (P option on misc menu)?

  • Have you followed the instructions correctly to install the script?

    Obviously something is not ok, and I find it surprising that the script is not working in all these distros.

    You have zsh errors with the Debian as well, although it is not installed?

    Is yt-dlp up to date? If you use this command on its own, do you get any errors?

    I am trying to troubleshoot, but in the dark.

  • I do not know how this script is interacting with zsh. Have you tried to run it with bash?