News for hackers. Stuff that matters.
Re:0h h1 – A little logic game by typomatic on Thursday November 13, 2014 @12:46PM (#8602827)
This is Unruly from Simon Tatham's puzzle collection: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/

I install this on literally every device I own. Windows machines, linux machines, android machines. It's a great source of small, procedurally generated puzzles. I often just put on some music and zone out playing Pearl for a while.

e: If you're on Ubuntu: sudo apt-get install sgt-puzzles

e2: I misremembered, it's not precisely Unruly--Unruly allows you to repeat rows/columns. But whatever, go install these games!

Re:0h h1 – A little logic game by teraflop on Thursday November 13, 2014 @12:52PM (#8602881)
That collection is technically kind of interesting too. The puzzle code itself is written in portable C, using a custom-built common framework and UI abstraction layer that allows it to run on pretty much any platform.

http://www.chiark.greenend.org.uk/~sgtatham/puzzles/devel/

Re:0h h1 – A little logic game by jcl on Thursday November 13, 2014 @02:28PM (#8603494)
Also, each puzzle has its own custom constraint solver to generate fresh puzzles with desirable characteristics. For example, the version of minesweeper in the collection generates puzzles such that the first click never reveals a mine and that there is always a logical path to the solution -- no guessing needed.
Re:0h h1 – A little logic game by Zeebrommer on Thursday November 13, 2014 @03:11PM (#8603750)
I always wonder with these kinds of puzzles how one can come up with an initial settings that (a) yields a unique correct solution and (b) has a logical next step at every step (so doesn't require thinking ahead x steps to arrive at a conflict)
Re:0h h1 – A little logic game by teraflop on Thursday November 13, 2014 @06:45PM (#8604914)
Conveniently enough, there's a long section of the developer docs that covers exactly that topic: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/devel/wr...
Re:0h h1 – A little logic game by mythmon_ on Thursday November 13, 2014 @09:11PM (#8605477)
For at least Loopy, the generator works by generating a full puzzle with all hints, and then removing hints one at a time until the solver can't solve the puzzle. So the complexity of the puzzles that can be generated are dependent on the cleverness of the solver.
Re:0h h1 – A little logic game by Zeebrommer on Friday November 14, 2014 @03:27AM (#8606290)
That's less elegant than I hoped for. Still works though!
Re:0h h1 – A little logic game by thisjepisje on Thursday November 13, 2014 @05:06PM (#8604455)
One possibility is to generate or change small parts of the puzzle each turn. For minesweeper for example you start out with an empty field, and after the first click you generate the mines.
Re:0h h1 – A little logic game by brianpgordon on Thursday November 13, 2014 @02:41PM (#8603592)
This almost seems like something you'd see in a thedailywtf article.

Want to write an application that does X? Design, build, test, and document a flexible cross-platform framework that can safely and portably run any application in the domain, and then specialize it to do X!

I have to say, though, that it seems to have actually worked out for the best in this case. He added a ton of puzzles at a rapid pace and they've spread to a surprising number of platforms.

Re:0h h1 – A little logic game by teraflop on Thursday November 13, 2014 @06:22PM (#8604825)
And now maybe you understand why "flexible cross-platform frameworks" are not automatically a WTF ;)
Re:0h h1 – A little logic game by rbsn on Thursday November 13, 2014 @05:39PM (#8604632)
Oh wow. These were installed on all the computers at school. We would often have hours where we didn't have any lessons scheduled, but couldn't play games, watch YouTube or go on Facebook as we would get our accounts suspended. This was the only game we could play as we could argue that it was technically "learning". The other one was a website where you had to name and locate all states in the USA. We are a British school.
Re:0h h1 – A little logic game by FreeFull on Thursday November 13, 2014 @01:30PM (#8603116)
If you choose a custom board size for Unruly, it also lets you choose the option to make rows/columns unique. This slows down the generation.
Re:0h h1 – A little logic game by doodpants on Thursday November 13, 2014 @02:33PM (#8603535)
This is also the same as the Landscaper puzzles in the Logic Games iOS app (https://itunes.apple.com/us/app/70-logic-games-time-killers/...)
Re:0h h1 – A little logic game by aardvark179 on Thursday November 13, 2014 @07:32PM (#8605124)
Unruly has an option to enforce unique rows & columns.
Re:0h h1 – A little logic game by rebolyte on Thursday November 13, 2014 @08:26PM (#8605312)
This just killed my productivity and made my day.
Re:0h h1 – A little logic game by jsnell on Thursday November 13, 2014 @10:34AM (#8601995)
A few bits of feedback:

- There's no list of rules anywhere. If you forget any rule, you need to go through the tutorial again.

- Is the tutorial missing a rule? (It has the "no two identical rows" rule, but it seems like you also can't have two identical columns).

- The endgame needs work. Right now it's simply highlighting every square that's wrong, rather than just telling which rule was broken. This is absolutely ridiculous, since at that point the player can simply flip every highlighted square and pass (and score the full points?).

There are two alternatives I can think of:

a) Instead of telling which squares are wrong, find an instances of the rules being broken. So for example highlight two rows that are equal, or a column of 3 identical squares, etc.

b) End the game when the board is full, but dock points for incorrect spaces, rather than force the player to go through the busywork of just toggling all squares that were wrong.

Re:0h h1 – A little logic game by bthornbury on Thursday November 13, 2014 @12:27PM (#8602715)
I have to agree with (a) here. Upon reaching the end of a 6x6, as far as I could tell no rules were broken, yet the solution was not valid.

I'm wondering if multiple solutions can exist and the game will only accept one.

Re:0h h1 – A little logic game by batrat on Thursday November 13, 2014 @01:14PM (#8603018)
Same here. Can't see what i'm doing wrong. Nice to have the rules on the side or a button to press to show them.
Re:0h h1 – A little logic game by csacc on Thursday November 13, 2014 @01:21PM (#8603066)
Yeah everything in this 10x10 seems right and I have looked over every single row and column to confirm that I haven't broken any rules but it still tells me that 8 random tiles are incorrect.
Re:0h h1 – A little logic game by avalaunch on Thursday November 13, 2014 @04:36PM (#8604282)
You should take a screenshot. See if anyone else can find something you might have missed, or can confirm that you found a winning solution.
Re:0h h1 – A little logic game by shoo on Thursday November 13, 2014 @07:47PM (#8605181)
here is a 4x4 that naively seems like it should be a legal solution, but isnt:

    1010
    1010
    0101
    0101
same number of 0s as 1s per row same number of 0s as 1s per col no rows or cols with run of 3 of same value

edit: oh - "no two rows are the same". fail. disregard this. must have clicked past that in the tutorial.

Re:0h h1 – A little logic game by d0m on Thursday November 13, 2014 @11:57PM (#8605878)
That's the point of having a clear set of rules somewhere because most people skipped that part of the tutorial. (I did too) I had to be stuck somewhere, quit the game and redo the tutorial very slowly just to see if there's a rule I didn't see ;)

Another way to find the rules is to use the "eye" on every turn in a 6x6 or 10x10.

Re:0h h1 – A little logic game by Tepix on Friday November 14, 2014 @03:37AM (#8606315)
Same here. It took me a while to notice that there were two identical vertical rows.
Re:0h h1 – A little logic game by mrtnkl on Thursday November 13, 2014 @02:47PM (#8603621)
Hi, I'm Martin, the author. Thanks for analyzing the game and the recommendations. I was actually working on your solution a already. So it will be coming up shortly. Also, for those who were suggesting to put it on iTunes and the Play Store, it already is. Enjoy playing! - @mrtnkl
Re:0h h1 – A little logic game by cschmidt on Thursday November 13, 2014 @05:07PM (#8604462)
You should put a link to the app in the app stores on the website.
Re:0h h1 – A little logic game by clockpie on Thursday November 13, 2014 @05:54PM (#8604699)
Thanks for not requiring my home address and current blood-sugar levels to install the android app!
Re:0h h1 – A little logic game by mikeash on Thursday November 13, 2014 @05:06PM (#8604457)
I have nothing much to contribute, but I want to say that this is really well done, I'm having a lot of fun with it, and thanks for making an iOS app for it. Now I just need to train my brain to notice rows determined by the "identical row" rule....
Re:0h h1 – A little logic game by staffordrj on Thursday November 13, 2014 @11:43AM (#8602455)
I actually appreciate the sense of discovery in the way the rules are presented. It felt like someone was actually watching me play and stepping in once they saw I was stuck.
Re:0h h1 – A little logic game by mikefivedeuce on Thursday November 13, 2014 @12:31PM (#8602749)
I had trouble with the "no two identical rows" rule as well. I didn't see it in the tutorial and on the 10 x 10 it was a key piece of logic to solve the puzzle.

Enjoyed the game play and the graphics are very smooth and clean.

Re:0h h1 – A little logic game by infinity0 on Thursday November 13, 2014 @11:37AM (#8602428)
Yes, it's pretty easy to maximise your points-per-second simply by clicking everything once to red, then correcting the ones that the endgame says are wrong.
Re:0h h1 – A little logic game by rareEarth on Thursday November 13, 2014 @01:30PM (#8603127)
Yes, I believe it is missing a rule. If columns don't need to be identical than this 10x10 puzzle won't have a unique solution: http://i.imgur.com/ZQ8pkfm.png
Re:0h h1 – A little logic game by jtanderson on Thursday November 13, 2014 @02:24PM (#8603459)
I get the same problem with valid solutions that don't match whatever it's comparing as the "right" one. It would be better to instead do a goal test after the final square has been filled? Seems to me this wouldn't be too hard to implement instead of comparing with a key.
Re:0h h1 – A little logic game by sjoerd_visscher on Thursday November 13, 2014 @02:33PM (#8603537)
Nope, there's just one: look at column 1 and 4, so far they are the same.
Re:0h h1 – A little logic game by timv on Thursday November 13, 2014 @06:32PM (#8604866)
That's the point.

The rules don't explicitly say that columns need to be unique (only rows).

Within the stated rules there are (as best I can see) 2 valid solutions to that puzzle. It is the introduction of the unstated unique column rule that resolves it.

Re:0h h1 – A little logic game by judk on Thursday November 13, 2014 @08:04PM (#8605249)
The author is not a native English speaker, but it seems obvious that the row rule should apply to columns.
Re:0h h1 – A little logic game by spb on Thursday November 13, 2014 @11:52AM (#8602506)
It would be better if I could set red or blue with one click rather than having to cycle through. Some UI like this, where X is Red and O is blue:

     _______
    |     \X|
    |      \|
    |\      |
    |O\_____|
     ```````
Tapping the red or blue corner of an unset gray tile would would set the tile to the tapped color, and tapping a red or blue tile would unset it back to gray.

Also, the "fixed" tiles of the puzzle need to be presented in a different style from the "dynamic" tiles the user can set.

Is there a GitHub repo for this?

Re:0h h1 – A little logic game by phkahler on Thursday November 13, 2014 @01:04PM (#8602948)
Or just use the right mouse button for blue.
Re:0h h1 – A little logic game by umurkontaci on Thursday November 13, 2014 @01:56PM (#8603320)
It would make it hard for touch devices
Re:0h h1 – A little logic game by TylerE on Thursday November 13, 2014 @02:09PM (#8603390)
So they can use dual tap? No reason to dumb more capable platforms down to the lowest common denominator.
Re:0h h1 – A little logic game by qmalxp on Friday November 14, 2014 @12:58AM (#8606000)
dual tap is kind of like clicking twice
Re:0h h1 – A little logic game by Leszek on Friday November 14, 2014 @02:12PM (#8608907)
"No reason to dumb more capable platforms down to the lowest common denominator."
Re:0h h1 – A little logic game by mrtnkl on Friday November 14, 2014 @04:44AM (#8606421)
Re:0h h1 – A little logic game by phest on Thursday November 13, 2014 @12:09PM (#8602610)
(Edit: so this is a pre-existing game concept. Should have read the about page first :) Thanks for showing me this game in a nice little implementation anyway. & my feedback/suggestion still stands.)

Outstanding work. This is an excellent, simple and original logic game, well done.

Only negative thing I experienced: it can be tough(/not particularly fun) to find similar rows/columns when playing on larger grids. And I don't feel like finding similar complex line patterns is where the game design esthetic shines. Not sure how you could solve this. Perhaps some sort of visualization of similarity of rows for larger grids? Say two rows are identical (minus missing tiles), then the same little icon could appear to the right of each row. Icons could be differentiated by shape, or color. Just an idea. Good work :)

Disclaimer: I'm a game designer

Re:0h h1 – A little logic game by lotharbot on Thursday November 13, 2014 @02:46PM (#8603609)
I probably wouldn't do something as blatant as "always pre-mark identical rows for me". But something simpler like a "highlight all rows that currently match this one" button would be nice for probing for identical rows.
Re:0h h1 – A little logic game by jws on Thursday November 13, 2014 @11:34AM (#8602403)
I like the effort that went into the eyeball command. It speaks to you like a human. That is, rather than showing a cell hint, it works out how you would get there and tells you that.

I did similarly in a sudoku game, it is an interesting exercise that then colors your thinking about error messages in future programming.

Re:0h h1 – A little logic game by readerrrr on Thursday November 13, 2014 @02:49PM (#8603632)
10x10 solved. It seems too easy. It is almost an auto solver, you just have to find two blocks of the same color together, or two blocks with the same color with an empty block in-between.

Great for a young person, but I would like to see a version with more rules and constraints to follow.

The UI and the UI feedback is outstanding though.

Re:0h h1 – A little logic game by seanalltogether on Thursday November 13, 2014 @05:18PM (#8604510)
Oddly enough, I found the 10x10 easier to solve then the 6x6 and the 8x8. After a couple play-throughs I think I know why. When trying to determine your next move, there's 3 options.

1. Look for a chance to play a block that wouldn't cause a chain of 3 colors together.

2. Look so see if the row or column has enough of a certain color in it.

3. Look to see if the row or column is a duplicate of another.

1 and 2 are easier to spot, but 3 is actually quite difficult and takes a lot of time to determine. On the 10x10, option 3 is almost never the determining case, probably because there are so many more possible configurations for a row or column, vs on a 6x6.

Re:0h h1 – A little logic game by bumbledraven on Friday November 14, 2014 @01:48AM (#8606098)
Those three heuristics seem to work for the puzzles on the site, due to a limitation of the site's puzzle generator. However, there exist puzzles of this type which cannot be solved using only those three heuristics.

Take this one, for instance:

  - O - - - -
  X - - O X -
  - - - - - -
  O - X - O -
  - - - - - O
  X - O - X -
This puzzle has the unique solution shown below, but none of your three heuristics will make any progress on it.

  O O X X O X
  X X O O X O
  X O O X O X
  O X X O O X
  O X X O X O
  X O O X X O
One of the ways you can solve this is to note that the square in the upper-left corner must be O. This is because if it were X, then there would be three adjacent Os in the first column. This insight is due to [email protected].
Re:0h h1 – A little logic game by seanalltogether on Friday November 14, 2014 @03:40AM (#8606325)
Except that your puzzle has multiple solutions, so I'm guessing that's why it breaks the heuristics. The same would be true of a sudoku puzzle with too few starting numbers.

  O O X X O X
  X X O O X O
  O O X O X X
  O X X O O X
  X X O X O O
  X O O X X O
Re:0h h1 – A little logic game by bumbledraven on Friday November 14, 2014 @03:48AM (#8606338)
Your solution is not valid. The 3rd column and the last column are duplicates.
Re:0h h1 – A little logic game by emmanueloga_ on Thursday November 13, 2014 @07:59PM (#8605223)
Glad to see this comment too.. I thought I was hitting a bug or something (making the game way too easy to solve :p). Just turning off the hints would make it much more difficult imo.
Re:0h h1 – A little logic game by ars on Thursday November 13, 2014 @08:32PM (#8605333)
> but I would like to see a version with more rules and constraints to follow.

That would actually make it easier, not harder. The more constrains you have the fewer possible options you have, and the easier the puzzle.

Re:0h h1 – A little logic game by readerrrr on Thursday November 13, 2014 @10:17PM (#8605650)
More constrains does not necessary translate to less choices. And even when it does, less choices do not necessary make it an easier game.

For example: I remove undo move, then you certainly have less choices but, the game is harder( even for a computer ), since you have to remember previous states which were previously accessible via undo.

Re:0h h1 – A little logic game by cousin_it on Thursday November 13, 2014 @01:12PM (#8603010)
Interesting! It looks like the game never requires you to backtrack, there's always a way forward by applying some rule exactly once. I guess that's why you have the requirement for unique rows and columns (which is pretty jarring gameplay wise), otherwise the forced games would be much more boring.

That kinda limits the possible intellectual enjoyment from the game, though. Without the requirement for unique rows and columns, the game would become Simon Tatham's "Unruly" (http://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/unrul...), which is extremely fun because you need to think ahead :-)

Re:0h h1 – A little logic game by bumbledraven on Friday November 14, 2014 @02:04AM (#8606125)
It looks like the game never requires you to backtrack

There are puzzles of this type that require either backtracking or exceedingly complex heuristics. However, the site only seems to generate simple puzzles that do not require backtracking.

See https://news.ycombinator.com/item?id=8606098

Re:0h h1 – A little logic game by tehwalrus on Thursday November 13, 2014 @01:27PM (#8603093)
Is every puzzle deterministic? I've twice now run out of rules to apply, just seen a solution and tapped it in. I'd hate to have to go and unmark all the squares since I guessed!
Re:0h h1 – A little logic game by bryans on Thursday November 13, 2014 @04:42PM (#8604315)
There is always a solution which doesn't require guessing.
Re:0h h1 – A little logic game by bumbledraven on Saturday November 15, 2014 @04:29AM (#8611284)
I would be very interested to hear an explanation of how to solve the puzzle below without guessing. For reference, the unique solution is on the right.

  - - - O - -               O X X O X O
  X - - - - X               X O O X O X
  - - - - - O               X O X O X O                                         
  - - - X O X               O X O X O X
  - - - - - X               O X O O X X
  - - X - - O               X O X X O O
Re:0h h1 – A little logic game by 1wd on Saturday November 15, 2014 @01:20PM (#8612242)
Order to fill in the board (1, 2, 3, ... 9, A, B, C, ... N):

  B C D O 2 1 
  X 3 G N 4 X 
  M N H I 5 O 
  F E F X O X 
  L K J 6 A X 
  9 8 X 7 8 O
Reasoning:

  1. finish column
  2. avoid OOO in row
  3. avoid OOO in row
  4. avoid OOO in row
  5. avoid OOO in column
  6. don't duplicate column 6
  7. avoid XXX in column
  8. wrap XX on both sides
  9. finish row
  A. finish column
  B. avoid OOO in column
  C. avoid XXX in column
  D. finish row
  E. don't duplicate column 5
  F. finish row
  G. avoid OOO in column
  H. avoid OOO in column
  I. avoid XXX in row
  J. finish column
  K. avoid OOO in row
  L. finish row
  M. finish column
  N. finish rows
Re:0h h1 – A little logic game by bumbledraven on Monday November 17, 2014 @03:15PM (#8620244)
Do you see a way to make progress on this one without guessing?

  O X - - X O
  X - - O - -
  - O X X O -
  - - O - - -
  O - X O X -
  X O - - O -
Re:0h h1 – A little logic game by bumbledraven on Sunday November 16, 2014 @10:57PM (#8616785)
Nice work! Step 6 was the one that eluded me. Using that principle I've now been able to solve several boards that I previously thought required guessing.
Re:0h h1 – A little logic game by 1wd on Monday November 17, 2014 @07:27AM (#8617847)
Yeah, finding step 6 took me much longer than any other step. (Followed by step E.)
Re:0h h1 – A little logic game by busterarm on Thursday November 13, 2014 @11:28AM (#8602370)
The fact that the game doesn't accept valid solutions besides the one it wants is a turn-off.
Re:0h h1 – A little logic game by Kiro on Thursday November 13, 2014 @12:38PM (#8602783)
You mean it didn't accept your invalid solution.
Re:0h h1 – A little logic game by GrinningFool on Thursday November 13, 2014 @11:36AM (#8602421)
I've found that it seems to accept any valid solution. Perhaps your solution wasn't as valid as you thought?
Re:0h h1 – A little logic game by bherms on Thursday November 13, 2014 @02:45PM (#8603605)
I finished an 8x8 and it didn't accept. Showed it to 4 co-workers and nobody could find any issue with violating the rules... Should've screenshotted.
[deleted]
Re:0h h1 – A little logic game by sjoerd_visscher on Thursday November 13, 2014 @12:08PM (#8602607)
Column 2 and 5 are the same
Re:0h h1 – A little logic game by mhandley on Thursday November 13, 2014 @12:15PM (#8602646)
You're correct - I didn't notice this. Sorry I deleted my original message once I realised to avoid too much noise but you'd already commented. Here's the link again to avoid messing up the thread completely: http://handley.org.uk/ohhi.png
Re:0h h1 – A little logic game by tpaksoy on Thursday November 13, 2014 @01:18PM (#8603042)
You need to have the same amount of red as blue in a row/column.
Re:0h h1 – A little logic game by duwease on Thursday November 13, 2014 @12:08PM (#8602604)
Row 5 has an uneven number of blue and red blocks.
Re:0h h1 – A little logic game by sjoerd_visscher on Thursday November 13, 2014 @11:41AM (#8602448)
Re:0h h1 – A little logic game by anon4 on Thursday November 13, 2014 @10:40AM (#8602030)
http://imgur.com/EYF3kzS

I don't understand what's wrong here.

Re:0h h1 – A little logic game by mankyd on Thursday November 13, 2014 @10:40AM (#8602040)
Rows 3 and 5 are identical.
Re:0h h1 – A little logic game by tromp on Thursday November 13, 2014 @11:13AM (#8602273)
This rule is easily overlooked in the tutorial, since the example shown can already be resolved using earlier rules (balancing red/blue in columns).

The tutorial must use an example where unique rows/columns is the only way to resolve the choice...

Re:0h h1 – A little logic game by vlunkr on Thursday November 13, 2014 @11:24AM (#8602341)
I guess I missed this rule. I got into a similar situation and thought there was a bug
Re:0h h1 – A little logic game by anon4 on Thursday November 13, 2014 @10:46AM (#8602090)
Oh, right. But what about the ones on row 1?
Re:0h h1 – A little logic game by sp332 on Thursday November 13, 2014 @10:50AM (#8602113)
Well if you switch the squares on row 3, you have to switch the square on row 1 as well. Otherwise the columns will not have even numbers of red and blue squares.
Re:0h h1 – A little logic game by anon4 on Thursday November 13, 2014 @11:02AM (#8602208)
Oh. It's really confusing to show not only the current mistake but also the mistakes that would be introduced by fixing it.
Re:0h h1 – A little logic game by sp332 on Thursday November 13, 2014 @11:06AM (#8602232)
True. There is only a single solution to each puzzle, so it just highlights all the blocks which don't match the known solution.
Re:0h h1 – A little logic game by Chirono on Thursday November 13, 2014 @12:56PM (#8602907)
Really nice idea, but it seems like quite a reliable way to win is to fill all the squares in red, and then change all the places it tells you are wrong.

Perhaps rather than pointing out which cells are wrong, highlight the group/row/column that break the rules instead. That might make it slightly harder.

Re:0h h1 – A little logic game by logicpuzzles on Thursday November 13, 2014 @12:01PM (#8602571)
This is basically http://www.conceptispuzzles.com/index.aspx?uri=puzzle/tic-ta...

If you are interested in those kind of puzzles there might be more logic puzzles on this page that you like.

Re:0h h1 – A little logic game by jastanton on Thursday November 13, 2014 @10:55AM (#8602156)
Does this remind any one else of Sudoku? In the same vein at least. Anyways very cool, great job!
Re:0h h1 – A little logic game by maaaats on Thursday November 13, 2014 @12:40PM (#8602794)
I felt I reused more logic from Griddlers/Nonograms, actually.
Re:0h h1 – A little logic game by deanclatworthy on Thursday November 13, 2014 @11:28AM (#8602369)
Yes, this was my first though also. Now when's it on the app store ;-)
Re:0h h1 – A little logic game by chx on Monday November 17, 2014 @12:23AM (#8616967)
For the 8x8 table there's a trick you can do which I suspect the heuristics never considers (because the rule violation is not 1 but many steps away): if you have a chit of one color on 1, 5 and one more above 5 then any more above 5 can't be of this color otherwise 2-4 all three would need to be of the opposite color and that's illegal.

Same for 1,2,4: 5 is of the opposite color otherwise 6-8 are of one color.

Re:0h h1 – A little logic game by recursive on Thursday November 13, 2014 @05:12PM (#8604482)
If you resize the browser window, the UI kind of loses its mind, and can't be restored without reloading the whole page.

http://i.imgur.com/BU5L61L.png

Re:0h h1 – A little logic game by jisaacstone on Thursday November 13, 2014 @03:01PM (#8603694)
Having trouble finding the problem with this solution: http://i.imgur.com/ToduSGR.jpg

Anyone see what the issue is? Been staring for 20 minutes . . .

Re:0h h1 – A little logic game by anopows on Thursday November 13, 2014 @03:36PM (#8603895)
Lines are not allowed to match. Eg line 4 and 7 are the same (which is not allowed)
Re:0h h1 – A little logic game by 8_hours_ago on Thursday November 13, 2014 @03:50PM (#8603999)
There are two identical rows.

The game should show the identical rows/columns instead of just highlighting every incorrect square... it can take a while to find out what's actually wrong with a solution.

Re:0h h1 – A little logic game by nahiluhmot on Thursday November 13, 2014 @03:16PM (#8603775)
Same thing happened to me. Looks like it checks for one hard-coded answer when there could be many for a given puzzle. It should just check that your board satisfies the rules described in the tutorial instead.
Re:0h h1 – A little logic game by brute on Thursday November 13, 2014 @03:27PM (#8603834)
Rows 4 and 7 are identical
Re:0h h1 – A little logic game by T-hawk on Thursday November 13, 2014 @03:36PM (#8603894)
This is correct. I think I may have fat-fingered a downvote on you.
Re:0h h1 – A little logic game by brute on Thursday November 13, 2014 @03:38PM (#8603909)
With great power comes great responsibility.
Re:0h h1 – A little logic game by scragg on Thursday November 13, 2014 @03:07PM (#8603724)
Try flipping the horizontally adjacent blocks
Re:0h h1 – A little logic game by jisaacstone on Thursday November 13, 2014 @03:11PM (#8603749)
no I mean which of the rules is being broken?
Re:0h h1 – A little logic game by mrtnkl on Friday November 14, 2014 @04:41AM (#8606417)
0h h1 is now available on Github. Clone away :)

https://github.com/Q42/0hh1

Re:0h h1 – A little logic game by bumbledraven on Friday November 14, 2014 @02:35AM (#8606193)
Here's a solver for the puzzle: http://pastebin.com/ws6wv6Ew

It's written in clingo (http://en.wikipedia.org/wiki/Answer_set_programming)

Re:0h h1 – A little logic game by jweather on Thursday November 13, 2014 @01:36PM (#8603176)
Awesome, this is really well done. I especially like how the hint function reminds you of the rules you've forgotten.
Re:0h h1 – A little logic game by skykooler on Thursday November 13, 2014 @12:22PM (#8602693)
It would be nice if you could set the color to blue by right-clicking rather than double-clicking.
Re:0h h1 – A little logic game by SixSigma on Thursday November 13, 2014 @03:23PM (#8603811)
let us know how to right click with a single touch device then
Re:0h h1 – A little logic game by dannytatom on Thursday November 13, 2014 @05:03PM (#8604442)
double tap
Re:0h h1 – A little logic game by jtolds on Thursday November 13, 2014 @10:56AM (#8602160)
Clicking the top row seems broken sometimes. I suspect when I think I'm clicking a cell on the top row that I'm actually clicking the board size element ("4x4" or "10x10"), and it's not transferring through to the underlying cell.
Re:0h h1 – A little logic game by fogleman on Thursday November 13, 2014 @10:31PM (#8605682)
Love the game. Just wrote a solver in Python:

https://github.com/fogleman/OhHi/blob/master/main.py

Re:0h h1 – A little logic game by bumbledraven on Friday November 14, 2014 @01:59AM (#8606117)
It doesn't terminate on this one:

         '00....',
         '110010',
         '......',
         '0.1.0.',
         '.....0',
         '1.0.10',
This puzzle has a unique solution (See https://news.ycombinator.com/item?id=8606098). To give your solver a hint sufficient to solve the puzzle, set the first row to:

         '00..0.',
Re:0h h1 – A little logic game by fogleman on Friday November 14, 2014 @07:34PM (#8610387)
Yeah, my solver is pretty basic. Was that puzzle from the website? BTW, love your solver... how did you learn about clingo?
Re:0h h1 – A little logic game by bumbledraven on Saturday November 15, 2014 @03:08AM (#8611171)
Was that puzzle from the website?

No, my friend and I made that one. It can be solved without guessing, but it takes another heuristic beyond the three or so that people usually use. We also have ones that require guessing (can't be solved with any reasonable heuristics as far as we know.)

I learned clingo to solve puzzles and business scheduling problems. Check out my web site http://www.takingthefun.com for other games and puzzles I've solved with it.

Re:0h h1 – A little logic game by ShoePooPoo on Thursday November 13, 2014 @11:01AM (#8602194)
Maybe it's just broken for me? All I see is a dark screen, although all sources load. I also downloaded the page and sources and tried to launch locally- nothing works. Maybe it's my locked down work computer?
Re:0h h1 – A little logic game by gr3yh47 on Thursday November 13, 2014 @12:35PM (#8602766)
i am getting webpage unavailable
Re:0h h1 – A little logic game by vlunkr on Thursday November 13, 2014 @03:24PM (#8603819)
This is really fun! My suggestion is to think of a more memorable name. I've played several times today and I've forgotten the name every time and had to come back to HN to find it.
Re:0h h1 – A little logic game by vlunkr on Thursday November 13, 2014 @04:30PM (#8604246)
0h h1 oh hi I get it now, oops!
Re:0h h1 – A little logic game by ScottWhigham on Friday November 14, 2014 @05:43AM (#8606553)
You get it, but will the masses remember the name? I doubt it. Terrible name when it comes to mass appeal; kitchy name for techies.
Re:0h h1 – A little logic game by readerrrr on Friday November 14, 2014 @12:05AM (#8605891)
edit: I'm wrong.

I have found a correct solution, yet the game doesn't accept it:

B r r B

r B B r

B B r B

B r B r

The correct solution was:

B r r B

r B B r

B B r r

r r B B

My guess to this is that there are more than one solutions to the problem and checking if the board is solved is done by finding the first solution and comparing it to yours.

Re:0h h1 – A little logic game by function_seven on Friday November 14, 2014 @12:09AM (#8605902)
Your third row contains 3 B's and only one r. Each row and column has to have an equal number of each.
Re:0h h1 – A little logic game by readerrrr on Friday November 14, 2014 @12:10AM (#8605904)
Well that's embarrassing.
Re:0h h1 – A little logic game by function_seven on Friday November 14, 2014 @01:09AM (#8606029)
Earlier today when I saw this thread I came to post my game that "should have won but didn't", only to see to many other people posting the same. For me it was the "no duplicate columns or rows" rule that I didn't notice. Something about this game is tripping a lot of people up.
Re:0h h1 – A little logic game by readerrrr on Friday November 14, 2014 @01:14AM (#8606043)
The thing is I know about the rule of equal number in each row and column, and have used it to solve a few 10x10, but when switching to a 4x4 I forgot it exists. I took some time and went trough the rules I knew, before posting this "error", but that one rule was gone.
Re:0h h1 – A little logic game by egregiouscoder on Thursday November 13, 2014 @04:59PM (#8604417)
Very cool concept! At first I thought it was going to be like 2048, but it ended up being more of a challenge which I enjoy. Would love to see an app version of this
Re:0h h1 – A little logic game by ggchappell on Thursday November 13, 2014 @05:37PM (#8604617)
Very nicely done.

It seems like the solution is always unique, for a given starting point. Is this the case?

Re:0h h1 – A little logic game by publicfig on Thursday November 13, 2014 @12:16PM (#8602649)
Would love to disable the helper at the end of the game. Kind of ruins it for me. Otherwise, it's fun!
Re:0h h1 – A little logic game by kelvin0 on Thursday November 13, 2014 @11:35AM (#8602415)
I would like to know what tools/frameworks/languages were use to develop this cool game. I know it boils down to HTML5/CSS/JS, but was it DART? TypeScript? What frameworks did you use? I want to start a small game as a web app, but I'm having trouble settling into which tools ... so far I'm tinkering with DART and Polymer ... ideas, suggestions?
Re:0h h1 – A little logic game by GrinningFool on Thursday November 13, 2014 @11:46AM (#8602469)
I'm making an assumption here that you don't have a lot of development experience. Given that: start with the basics. Pure javascript/html5/css. You'll then learn what you want out of a framework and will have a better foundation for the next project (which might be a rewrite of the same thing).

You'll also get a first-hand view of how screwed we are in the HTML5 "standards" department,

Re:0h h1 – A little logic game by kelvin0 on Thursday November 13, 2014 @01:07PM (#8602966)
Actually I have quite a bit of programming experience, and that is the reason why going straight to Javascript (as I have done before) does not seem productive ...
Re:0h h1 – A little logic game by kelvin0 on Thursday November 13, 2014 @01:09PM (#8602993)
No one else with programming non-web apps finding this HTML/CSS/JS ecosystem intimidating? Please feel free to bash on this comment too..
Re:0h h1 – A little logic game by Igglyboo on Thursday November 13, 2014 @02:05PM (#8603368)
All I ever used at university was Java and Python, it was extremely intimidating for me to have to learn 3 languages to start doing web programming. After a few months of daily front end work they start to blur together and become one in the same.

Just dive in and you'll get used to it soon enough. Html is really easy and JS is similar to other C-like languages, css is pretty hard if you're building complex applications IMO but things like LESS and SASS make it easier to deal with.

Re:0h h1 – A little logic game by sjoerd_visscher on Thursday November 13, 2014 @11:45AM (#8602466)
Just look at the source!
Re:0h h1 – A little logic game by kelvin0 on Thursday November 13, 2014 @01:08PM (#8602973)
Once the beef has been turned into a hamburger, it's hard to identify the specific animals that went into the hamburger's composition ... if you know what I mean.
Re:0h h1 – A little logic game by Igglyboo on Thursday November 13, 2014 @02:10PM (#8603393)
That somewhat holds for non web apps but when you have the source it's pretty easy to tell what it was made with. Usually if it's a compile to javascript language like TypeScript or Dart the source is going to look horribly obfuscated. The js on the page is pretty straight forward so I really doubt he used one of those.

Looking at the source it looks like everything is hand rolled except for the jQuery dependency.

Re:0h h1 – A little logic game by sjoerd_visscher on Thursday November 13, 2014 @02:19PM (#8603441)
Did you take a look at the source?
Re:0h h1 – A little logic game by Sarien on Thursday November 13, 2014 @10:30AM (#8601970)
Re:0h h1 – A little logic game by granfalloon on Thursday November 13, 2014 @10:34AM (#8601996)
What are you referring to? Looks like you have several three-in-a-rows, and some other squares are highlighted because they will be invalid once you fix the triples. (Could be wrong!)
Re:0h h1 – A little logic game by zyrthofar on Thursday November 13, 2014 @10:35AM (#8602002)
I got a similar thing - a different valid permutation than the "official" one.

http://i.imgur.com/yzD9qFL.png

Re:0h h1 – A little logic game by Sarien on Thursday November 13, 2014 @10:38AM (#8602023)
Well, at least I'm not the only one who apparently didn't pay attention for half of the tutorial. :)
Re:0h h1 – A little logic game by zyrthofar on Thursday November 13, 2014 @10:41AM (#8602042)
I didn't have any three-in-a-rows, nor identical rows. What rule are you referring to?
Re:0h h1 – A little logic game by rtkwe on Thursday November 13, 2014 @11:06AM (#8602229)
You do. Row 3 and 6 are both RBRBRB.

edit: I see you noticed.

Re:0h h1 – A little logic game by zyrthofar on Thursday November 13, 2014 @10:49AM (#8602111)
Oh ok, rows 3 and 6 are identical. I feel stupid now.
Re:0h h1 – A little logic game by DougBTX on Thursday November 13, 2014 @11:16AM (#8602294)
Seems it would be better if the "that's not right" error highlighted the matching rows rather than what to click on to win.
Re:0h h1 – A little logic game by Sarien on Thursday November 13, 2014 @10:52AM (#8602131)
Oh, sorry! Confused.
Re:0h h1 – A little logic game by GrinningFool on Thursday November 13, 2014 @11:50AM (#8602490)
rows three and six are identical
Re:0h h1 – A little logic game by px1999 on Thursday November 13, 2014 @10:45AM (#8602084)
rows 3 and 6 are the same.
Re:0h h1 – A little logic game by daurnimator on Thursday November 13, 2014 @10:31AM (#8601980)
You can't have 3 of the same colour in a row
Re:0h h1 – A little logic game by Sarien on Thursday November 13, 2014 @10:32AM (#8601982)
Oh, I thought it was in the same row. Well, that makes more sense. I treated it like a form of sudoku with only 2 symbols and 3 repetitions allowed.
Re:0h h1 – A little logic game by awesor on Thursday November 13, 2014 @10:56PM (#8605748)
I have a feeling we're embarking on the next 2048-like trend! Awesome game!
Re:0h h1 – A little logic game by NKCSS on Thursday November 13, 2014 @02:03PM (#8603362)
Fun, its a lot like binairo
Re:0h h1 – A little logic game by tuxone on Thursday November 13, 2014 @11:47AM (#8602473)
it's like playing Sudoku merged with Minesweeper, I really enjoy it!
Re:0h h1 – A little logic game by nazgul on Thursday November 13, 2014 @07:10PM (#8605036)
This is absolutely fantastic -- love it! Thanks for making this.
Re:0h h1 – A little logic game by ilija139 on Friday November 14, 2014 @03:34AM (#8606306)
It makes a mistake when more than one solution is possible.
Re:0h h1 – A little logic game by grimtrigger on Thursday November 13, 2014 @10:08PM (#8605634)
You should have an overview of the rules on the game page.
Re:0h h1 – A little logic game by GuriK on Thursday November 13, 2014 @10:24AM (#8601930)
This is awesome, but tutorial seems slow and boring.

Friendly reminder: launch iOS/Android version before someone else does

Re:0h h1 – A little logic game by cokernel on Thursday November 13, 2014 @10:33AM (#8601987)
As far as I can tell, this is the same game as Unruly[0], which is included in Chris Boyle's Android port[1] of Simon Tatham's puzzle collection.

EDIT: The history is a little more interesting than that. The janko.at page on Tohu wa Vohu[2] names many pre-existing variants: Eins und Zwei, Binary Puzzles[3], Binoxxo, and others. Binary Puzzles are notable for being paper-and-pencil puzzles, but it's not clear whether these were first paper-and-pencil puzzles or computer puzzles.

[0] http://www.chiark.greenend.org.uk/~sgtatham/puzzles/doc/unru...

[1] https://chris.boyle.name/projects/android-puzzles/

[2] http://www.janko.at/Raetsel/Tohu-Wa-Vohu/index.htm

[3] http://www.puzzle-magazine.com/binary-puzzle-magazine.php

Re:0h h1 – A little logic game by couchand on Thursday November 13, 2014 @10:48AM (#8602107)
Wow that collection of puzzles is awesome, thanks for the reference!
Re:0h h1 – A little logic game by apetresc on Thursday November 13, 2014 @10:29AM (#8601964)
Eh? I thought the tutorial was great. Took less than 2 minutes, I totally understood the rules, and had completed a sample puzzle. What more could you want?
Re:0h h1 – A little logic game by rulesaway on Thursday November 13, 2014 @02:23PM (#8603458)
A way to just see the damn rules! :)