Science and technology

Solve a puzzle on the Linux command line with nudoku

Welcome again to a different installment in our 24-day-long Linux command-line toys introduction calendar. If that is your first go to to the collection, you may be asking your self what a command-line toy even is. We’re figuring that out as we go, however typically, it could possibly be a sport, or any easy diversion that helps you’ve gotten enjoyable on the terminal.

Some of you’ll have seen numerous alternatives from our calendar earlier than, however we hope there’s at the least one new factor for everybody.

Every yr for Christmas, my mother-in-law offers my spouse a Sudoku calendar. It sits on our espresso desk for the yr to comply with. Each day is a separate sheet (apart from Saturday and Sunday, which can be mixed onto one web page), with the thought being that you’ve got a brand new puzzle every single day whereas additionally having a functioning calendar.

The downside, in apply, is that it is an important pad of puzzles however not an important calendar as a result of it seems some days are tougher than others and we simply do not get by way of them on the essential fee of 1 a day. Then, we could have every week’s value that will get batched on a lazy Sunday.

Since I’ve already given you a calendar as part of this collection, I determine it is solely truthful to present you a Sudoku puzzle as nicely, besides our command-line variations are decoupled so there is not any stress to finish precisely one a day.

I discovered nudoku in my default repositories on Fedora, so putting in it was so simple as:

$ sudo dnf set up nudoku

Once put in, simply invoke nudoku by identify to launch it, and it ought to be pretty self-explanatory from there. If you’ve got by no means performed Sudoku earlier than, it is pretty easy: You have to make it possible for every row, every column, and every of the 9 3×3 squares that make up the big sq. every have one among each digit, 1-9.

You can discover nudoku‘s c supply code on GitHub beneath a GPLv3 license.

Do you’ve gotten a favourite command-line toy that you simply we should always have included? Our calendar is principally set for the rest of the collection, however we would nonetheless like to function some cool command-line toys within the new yr. Let me know within the feedback under, and I am going to test it out. And let me know what you considered at the moment’s amusement.

Be certain to take a look at yesterday’s toy, Use your Linux terminal to celebrate a banner year, and are available again tomorrow for an additional!

Most Popular

To Top