• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: June 29th, 2023

help-circle


  • Okay, so I looked it up. Apparently, you don’t need to guess in proper Sudoku, when there is only one solution

    Yup, you got it :)

    , but apparently there are also many Sudoku, sometimes printed, which have more than one solution, and so you require guessing.

    Yeah, but only where you have come to a place where a 50-50 guess is needed, when you get used to solving good puzzles you learn how to figure it out, and there is a lot of checkers that you can run on puzzles if you’re not sure, and if you find one with multiple solutions you just evade that source.

    Also There are known good sources for puzzles, ones that are proper puzzles, so the best choice is just to keep at them.

    Also, some sites mention “guessing” as a technique, which I probably took it to mean that you have to do it.

    Guessing is used in speedsolving, where they solve the puzzles really fast. Guessing is a valid technique in picross as well, you can just guess if a cell is filled or not, it’s exactly the same in sudoku, you just cheat yourself, and it’s a big likelihood that you made the puzzle unsolveable, personally I find it not very gratifying to guess, so I never do.

    Since I believed guessing is required, I would leave the puzzle where I got a bit stuck, assuming this is where I need to guess.

    Yeah, some of the techniques, like finned fishes, Alternate inference chains and 3d-Medusa and so on can get a bit involved, so if you haven’t seen them before it’s hard figure them out by yourself. I used to moderate the r/sudoku sub over at reddit, where we used to help people solve a lot of puzzles they were struggling with. But really difficult stuff like that usually aren’t in printed puzzles, they seldomly have anything more complex than an X-wing.

    If you want to learn about techinques https://hodoku.sourceforge.net/en/techniques.php is a really good source, and hodoku is a really good solver too in case you want to learn, if you want something online there is https://sudokuwiki.com which is decent as well :)

    Thanks for the comment! If I start to like Sudoku again, the blame would be all on you! 😀

    Hah, you’re welcome, I’ve been solving for around a decade now, and it’s still fun to me, so at least there is something for it.










  • sotolf@programming.devtoProgramming@programming.dev...
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I was excited by rust, back when it used sigils instead of box and other keywords, it was an exciting language, I had some fun with it, but it wasn’t ready yet, so I went having fun with some of the languages in its family (ocaml, F#) And when I went back to rust some years ago to write a little tool for myself (https://codeberg.org/sotolf/tapet-rust) to try it out, and it was really cumbersome, and ended up rather slow. I really don’t like the rust syntax, and yes, that is kind of shallow, but there are so many bad choices, like a ; not being there rather than a return, it just doesn’t work for me. Error handling is decent, just that it’s syntactically cumbersome unless you use a package like anyerror, there are packages, so many packages, and what you wanted to make that is just a small tool now has 2 Gb + of build artifacts. I later found out about nim, and rewrote the tool in it, and got a more stable faster tool in a 3rd less code (https://codeberg.org/sotolf/tapet-nim) And the way to work in nim just fits me so much better.

    The thing about the rust pushing people (They are funnily enough mostly people that haven’t really used it for much yet, but went into the hype) is not that they are exited about a language, sure I can get that, it’s the way they are pushing it, they talk down about other languages, demand people rewriting things in a language they are exited about, I don’t like the slow compilation and the huge stuff. It’s just not me. Don’t get me wrong I know it’s a good language, just too low level for what I (and most people really) need and it getting pushed for places where it’s not really suited, I don’t really think it’s a good thing. There is also this push for cleverness in their libraries and code, and cleverness in code is always a red flag to me. So it’s not you rust, it’s me.




  • sotolf@programming.devtoProgramming@programming.dev...
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    For me it depends on the size, for small stuff like 1000-2000 lines of code that mainly I just work on alone, something like python is okay, if it is something longer, I miss types a lot.

    The thing is nim is more than just a typed python, it just works really well, I’ve had a lot of fun with it the two or so years that I’ve used it.

    But then again, I have a lot of fun testing out different languages, and don’t care about marketability, since I’m just programming as a hobby, and not as my profession, right now I’m playing around with picolisp, and it’s pretty fun :)



  • Transcription:

    Picture of A wildlife photographer marked “The rest of the church” taking pictures out of the frame towards a text marked “Women getting abortions” While prominently in the backgrounds there are two rhinos fucking, the fucker is marked “Priests” and the fuckee “Children”


  • sotolf@programming.devtoMemes@lemmy.mlYes
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Transcription:

    4 Panel comic taken from when a reporter Yvonne Tong asked Doctor Alyward from the WHO about Taiwanese membership in the WHO (WHO having China as a Major player) Yvonne Tong is here representing the teacher and Me is played by Dr Alyward.

    1: My Teacher: Where is your homework
    2: Me: I’m sorry I couldn’t hear your question. Yvonne.
    3: My Teacher: Ok let me repeat the question
    4: No, that’s okay. Let’s move to another one then.