Quintel
Welcome to Quintel, a 5x5 grid game where you uncover hidden rules through experimentation.
Each level features a unique pattern that grow in complexity or difficulty. Each level holds a secret rule (criterion) that 5x5 boards must satisfy: for some levels, some sort of symmetry is needed; for others, some kind of numerical requirements must be met. Rules come in various types.
Flip the bits of the 2D array on the input board; the Standard Output panel shows whether this board conforms to the criterion of the level. Use JavaScript, with global access to `board`, which is an array of arrays, to test your theories. Write a JavaScript program in the code area; the Player Output panel shows the result of your code on the given board. When you believe your code reflects the hidden criterion, click "Check". If your code fails, the game highlights a counterexample to help you debug.
Can you guess the secret rule for every stage and achieve quintessential quintelligence?
~ Clocksmith + Mage of the East
2025.12.25
For the first puzzle, try "return Helpers.boardSum(board) === 0 || Helpers.boardSum(board) === 25;"
The following helper functions can be used to make your code terser:
Helpers.boardSize(board) : returns an array [rowCount, colCount]
Helpers.range(a, b) : returns the array [a, a+1, ..., b-1]
Helpers.plotBoard(height, width, fn) : returns a board where the i-th row, j-th column cell is fn(i, j)
Helpers.isUnanimous(array) : returns whether the array is unanimous
Helpers.equal(a, b) : returns if two nested arrays are equal
Helpers.reversed(array) : returns a reversed array
Helpers.flipVertical(board) : flips a board vertically
Helpers.flipHorizontal(board) : flips a board horizontally
Helpers.flipDiagonal(board) : transposes the board (flips the board through the main diagonal)
Helpers.rotateCCW(board) : rotates a board counter-clockwise
Helpers.rotateCW(board) : rotates a board clockwise
Helpers.rotate180(board) : rotates a board 180 degrees
Helpers.invert(board) : flips every bit of the board
Helpers.andAll(array) : returns the bitwise AND of an entire array
Helpers.orAll(array) : returns the bitwise OR of an entire array
Helpers.xorAll(array) : returns the bitwise XOR of an entire array
Helpers.sum(array) : returns the sum of an array
Helpers.boardSum(board) : returns the sum of a board
Helpers.oneIndices(board) : returns the indices [row, column] of all ones in a 5x5 board
Helpers.zeroIndices(board) : returns the indices [row, column] of all zeros in a 5x5 board
| Published | 8 hours ago |
| Status | Released |
| Platforms | HTML5 |
| Author | eternaldawn |
| Genre | Puzzle |
| Tags | programming |
Leave a comment
Log in with itch.io to leave a comment.