- You find all four groups within
100 turns.
One Away
Approved by mikdiet alexcercos LeifTerry
1 CodinGamers have started the puzzle
A higher resolution is required to access the IDE
- 1
Learning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
By the end of a puzzle the words stop helping anyway. You move a tile out, put another in, submit and see what comes back.
One Away is that part, start to finish. The four boxes in a group have something in common, but you only see it once you have found them.
The Goal
Find all four groups in as few turns as you can, using the hint given after each guess.
Rules
The groups have no names and no order.
Each turn you guess a group of four boxes, and one hint comes back.
The hint
Your four boxes may come from several groups. Whichever group contributes the most decides the hint:GREEN : all four from one group. The group is solved.ORANGE : three from one group. The guess is one away.GREY : otherwise, including the first turn.
The board
A solved group leaves play. Its four boxes join the solved rows at the top of the board, below the groups you found earlier.The boxes still in play close the gaps left behind, staying in ascending order.
Where a box sits on the board tells you nothing about which group it is in.
Guesses
A guess is legal only if the four boxes are distinct and all still in play.Repeating the same guess is allowed. It costs a turn and returns the same hint.
Score
Score =
- You use all
100 turns without finding the four groups. - You make a guess which does not contain four distinct integers.
- You make a guess containing a box number which is either outside the range
1 to16 , or from a group already solved. - You do not respond in time.
Game Input
Line 1: an integer solvedGroups, the number of groups already solved.
Next 4 lines: the board, one row per line, each with four space-separated integers, the boxes in that row. The first solvedGroups rows are the solved groups, in the order they were solved. The rows below hold the boxes still in play, in ascending order.
Last line: a word hint, one of
Maximum
Response time per turn is
Response time for the first turn is
All tests are fixed, while all validators are random.
A higher resolution is required to access the IDE