I thought the game was cool so I built a little version of it here: https://blaise.gg/number_game/index.html
Interesting, it appears I've encountered an impossible combination of numbers: [2, 5, 1, 3] The only possible move is to add 1 and 3. Can't ever split a 2 as that would result in [1, 1], can't split the 5 because that would be [4, 1] or [3, 2], can't split the 3, as that would be [2, 1] or [1, 2], can't add the 5 to anything as that would be larger than 5.
Here's a puzzle game. I call it Reverse the List of Integers
91–100 of 188 posts
Re: Here's a puzzle game. I call it Reverse the List of Integers
#92Could a constraint solver just rip through this problem?
Re: Here's a puzzle game. I call it Reverse the List of Integers
#93I hate little puzzles like this when presented in isolation, my brain just bounces off them. If the EXACT same puzzle was presented as part of a real problem with context and reasons, my brain would be all over it and I'd work out a solution. As another comment says, it will inevitably show up as a coding interview, one that I would likely fail!
Re: Here's a puzzle game. I call it Reverse the List of Integers
#94I hate little puzzles like this when presented in isolation, my brain just bounces off them. If the EXACT same puzzle was presented as part of a real problem with context and reasons, my brain would be all over it and I'd work out a solution. As another comment says, it will inevitably show up as a coding interview, one that I would likely fail!
I think even that very minimal structure helps mentally elevate it from a boring math problem to a "real" scenario.
Re: Here's a puzzle game. I call it Reverse the List of Integers
#95I thought the game was cool so I built a little version of it here: https://blaise.gg/number_game/index.html
Interesting, it appears I've encountered an impossible combination of numbers: [2, 5, 1, 3] The only possible move is to add 1 and 3. Can't ever split a 2 as that would result in [1, 1], can't split the 5 because that would be [4, 1] or [3, 2], can't split the 3, as that would be [2, 1] or [1, 2], can't add the 5 to anything as that would be larger than 5.
Re: Here's a puzzle game. I call it Reverse the List of Integers
#96Could a constraint solver just rip through this problem?
Not a bad benchmark problem. It didn't get very far, but maybe the next release will.
Re: Here's a puzzle game. I call it Reverse the List of Integers
#97Earlier quoted context omitted.
Interesting, it appears I've encountered an impossible combination of numbers: [2, 5, 1, 3] The only possible move is to add 1 and 3. Can't ever split a 2 as that would result in [1, 1], can't split the 5 because that would be [4, 1] or [3, 2], can't split the 3, as that would be [2, 1] or [1, 2], can't add the 5 to anything as that would be larger than 5.
Couldn't you split 3 into [4,-1] ?
Re: Here's a puzzle game. I call it Reverse the List of Integers
#98Earlier quoted context omitted.
Thought the same, you beat me to it! Really like the tree-like view, might steal that idea later :-) https://bewelge.github.io/aNumberGame/ (does not format well on mobile) Code: https://github.com/Bewelge/aNumberGame
I like that all possible moves are shown at once. Would it be possible to have the sequence be other than [7, 5, 3]?
Example for sequence 5,2,7
Re: Here's a puzzle game. I call it Reverse the List of Integers
#99Earlier quoted context omitted.
The article specified a list of positive integers, and you can’t go smaller than the smallest initial value.
Where does it say that? It only says you can't go larger than the largest value.
If you split 5 into 6 and -1... 6 ain't smaller than 5.
Re: Here's a puzzle game. I call it Reverse the List of Integers
#100Earlier quoted context omitted.
Couldn't you split 3 into [4,-1] ?
None of the implementations support negative numbers, but the rules say integer which includes negative numbers, so that should be a legal move.
It also violates Rule 1 because one of the splits is larger than the original number.