How to Play

You’re blue, and you go first. Drag a numbered playing piece onto the game board.

You score points if the sum of the pieces in the row or column you played in (major diagonals count too) is evenly divisible by 3, 5, or 7.

3 5 7

So if you’re first move is a 5 in a corner, you’ll score 3 points. Five goes into five one time, and you score once for each row, column, and diagonal.

Additionally, you can score bonus points for getting two of a kind (2 points), three of a kind (6 points), four of a kind (12 points), or four consecutive numbers (4 points) in the same row, column, or diagonal.

There are 52 pieces in the game, four sets of 1 through 13.

Taking Turns

You can click the human and computer icons above the scores to toggle who plays which color.

Play against a friend, or have the computer go first if you want more of a challenge.


Mentat was named after the quick thinking humans in Frank Herbert’s Dune books. Ethan Schoonover’s Solarized provies the color scheme, and the rules where inspired by Keith Stevens’ card game DOM. All the HTML, CSS, and JavaScript where hand written in MacVim. Feel free to fork the code on Github.

Design & dev by Frank Mitchell for js13kGames.
Colored with Solarized and inspired by DOM.