Rasa Puzzle

You are given a square board (4×4, 6×6 or 8×8) with numbers as tokens.
You have to eliminate all tokens in as few moves as possible. A move consists of adding or subtracting two rows or two columns at a time.
If a token is the only one in its row and column, it disappears.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The shortest solutions (for setups 1, 2, and 3 of boards 4x4 and 6x6) have been found by the author by hand, so you may be able to improve on them.
The best solutions for the three 8x8 setups are not known.
You can also create your own setup.
Move description
Select a row or column by clicking one of the arrows.
Then select a second row (or a second column) by clicking one of the plus signs or minus signs that appear instead of the arrows.
If you click a plus sign, the second selected row (or column) will be added to (or subtracted from) the first selected row or column.
If an token is zero, it will not be displayed.
The goal is to reduce the sum of the absolute values of the tokens as much as possible.
This sum is displayed at the left border.
"board size": select the size of the board (4x4, 6x6 or 8x8).
"setup": there are three challenges with fixed setups for each board size. The fourth setup has an empty board. Click one of the corner positions of the empty fourth board to randomize the setup, or click board positions repeatedly to manually set up the board. Once you start moves you cannot change the setup anymore.
"colored": here you select whether you want the tokens colored or white only.
"moves done": displays the number of the current move and also the total amount of moves.
"<<, < 10, <" and ">,> 10, >>": these two setter bars let you select previous moves etc.
"repeat move 1x / 10x": click to repeat the last move once or ten times. These options are not available after a "lonely" token (one that is the only occupant of its column and row) has been deleted. Also, only some of the "10x" ten times repeat moves will be executed if a "loner" is eliminated during this automatic play. This does not create any problems. Just be aware that not all 10 moves might be executed in such a case (you will see that the move counter is not increased by 10 in these cases).
"save/restore": saves and restores the current sequence of moves.
"token count": this is the sum of the absolute (positive) values of all tokens on the board. Try to make this sum as small as possible.
"target": this is the smallest token count the author has found. Can you get this count or even improve on it?
"solution": solutions are stored only for the setups 1 to 3 which use the board 4x4 and 6x6. Use the paging control ("<<","<",">",">>") to go through a solution move by move.
The Rasa puzzle got its name from the Latin expression "tabula rasa" (clean slate), because it ends with an empty playing board.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+