Live data from Hacker News

Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

maxwellito.github.io

31–40 of 40 posts

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#31
post #8

There is some "overflow: scroll" that should be "overflow: auto" in CSS, IMHO.. So many empty scrollbars in firefox on osx...

I know... it was tricky to make Flexbox working everywhere. I ended up setting this property to make Safari looking fine. But you make me realise that it uglify everything on Firefox... I hope to find a good fix

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#32
A very fun game, it feels like a more "computationally intense" minesweeper, though I guess I compare everything to minesweeper[1][2]!

It seems the optimal strategy is to initially try to ferret out which dots are in the solution set and which are not in the solution set via broad non-overlapping sweeps followed by slight pattern deviations to determine membership of particular dots. Depending on luck and your errors, this might take a half dozen moves, it might take two dozen.

Once you know which dots are in the solution set and which are outside, I find it takes less than 5 additional moves to determine order. For this part, a pencil and paper for tracking the elimination of certain dots from certain orders made this phase consistently quick.

Is very fun, I was ultimately able to beat the medium difficulty setting in an average of 15 attempts per game.

[1] - https://github.com/lelandbatey/defuse_division

[2] - https://github.com/lelandbatey/minesweeper-solver

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#33
post #2

Pretty neat. Is there some kind of "strategy guide" for mastermind-like games? I feel that I'm operating at close-to-brute-force levels (I spent 22 attempts at a 4-lock) and I'd love to get better

I wrote a program and I'm getting sub 6 for every easy game. Think of the board as a grid of numbers.

0 1 2

3 4 5

6 7 8

Then an L shaped pattern would be the string 0367.

The main idea is that you first build a list of every possible combination of legal moves. Then you take a random guess from that list and you will get back the number of white and black dots.

Now, since you know your random guess and the right answer produces X white dots and Y black dots, you can remove from the list of possible combinations every combination that has: dots(myGuess, combinations[i]) != (X, Y)

you can keep taking random guesses from this list and filtering after each attempt until you get the right answer, I'm not sure of the math but I think worst case It'll be 6-7 moves to find the right answer.

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#35
post #33
post #2

Pretty neat. Is there some kind of "strategy guide" for mastermind-like games? I feel that I'm operating at close-to-brute-force levels (I spent 22 attempts at a 4-lock) and I'd love to get better

I wrote a program and I'm getting sub 6 for every easy game. Think of the board as a grid of numbers. 0 1 2 3 4 5 6 7 8 Then an L shaped pattern would be the string 0367. The main idea is that you first build a list of every possible combination of legal moves. Then you take a random guess from that list and you will get back the number of white and black dots. Now, since you know your random guess and the right answ…

Reminds me of a program I had to write earlier in school to implement an AI that would create hangman puzzles and then cheat on them by lying to the person playing, but in a way that they wouldn't contradict themselves and would have a valid word that matches what they've said so far.

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#37

This is a great puzzle game and a very impressive demo web app. However, I wish it was available from the various app stores for two reasons: 1. I want to pay you for this. 2. It will be ripped off a dozen ways, and I would rather see you make money rather instead of some horrible knockoff app-vendor.

Thanks, I know it's the risk, but this is why it will always be free and ad-free on GitHub. Like 2048. On Android + Chrome, a banner will popup to install it as PWA on your phone and you won't see the difference. I believe you are on iOS? I wish Safari iOS was better at following the new web feature (like WebRTC...) Thanks for your feedback, that's pretty cool!

Kind of amusing to mention 2048 as it's a clone of 1024 which is a clone of Threes (an iOS game originally). At least according to Wikipedia.

  Cirulli himself described 2048 as a clone of Veewo Studios' app 1024, who has actually said in the description of the app to be a clone of Threes.
https://www.wikiwand.com/en/2048_(video_game)

Re: Show HN: BreakLock – A hybrid of Mastermind and the Android pattern lock

#39
post #33
post #2

Pretty neat. Is there some kind of "strategy guide" for mastermind-like games? I feel that I'm operating at close-to-brute-force levels (I spent 22 attempts at a 4-lock) and I'd love to get better

I wrote a program and I'm getting sub 6 for every easy game. Think of the board as a grid of numbers. 0 1 2 3 4 5 6 7 8 Then an L shaped pattern would be the string 0367. The main idea is that you first build a list of every possible combination of legal moves. Then you take a random guess from that list and you will get back the number of white and black dots. Now, since you know your random guess and the right answ…

In this vein, finding where you get 0 dots can be very useful as well.
Post reply on HN