Factors Game

Saved games stay in this browser only.

About the game

Factors Game is a puzzle about small numbers. Your number sits above a board of tiles, and every move drops it one row. When it lands on a tile, one of two things happens: if the tile is a factor of your number, your number is divided by it, and if it is not, the tile is added to it. The aim is to bring the number down to 1, or as close to 1 as you can, using as few moves as possible.

The levels are generated by the program, so some of them cannot be solved all the way down to 1. Those levels are about finding the best possible answer instead: the lowest number you can reach, in the fewest moves. Your overall goal is to keep your average as low as possible across the levels you have played. The game starts with a short tutorial, and the levels unlock one after another, up to 256 of them.

Michael P. Nitowski wrote it in plain JavaScript on a canvas, with several colour themes. It has no sound and no images besides its small icon.

Playing it here

Click Play, then click once inside the game so it gets the keyboard. Use the left and right arrows to choose a column for your next move, then press down to make it. If you take a wrong turn, press up and the level starts over. On a touch screen you can swipe instead of using keys. The game keeps which levels you have finished and your results in this browser.

Controls

Key or gesture Action
left or right arrow, or swipe left or right set up your next move
down arrow, or swipe down make the move
up arrow, or swipe up start the level over

A few things worth knowing

Look for the factors first. Dividing is what brings the number down, and each tile you add instead pushes it up. Before you commit to a column, check which tiles below your number divide it, and which sums you would have to make to reach them.

A good number can still be a bad level. If a level has no way to 1, do not waste moves: the second prize is the lowest number you can reach, and then the lowest number of moves.

The tiles that look big are not always bad. Adding a large number costs you, but a division by a large factor is the biggest drop you can make in one move.

Credits and licence

Factors Game was written by Michael P. Nitowski and is released under the MIT licence. The changes made for this site are the removal of the share-card tags and of the links to the author's GitHub and Twitter pages, which are now plain text, and a rule that blocks any request to other sites; the patch, the build script and the licence text are linked from this page.