p5.js recreation of the stepping stone puzzle.
The task of the game is to place a series of ordered stones onto an infinite grid.
Stones can only be place on a spot if the sum of its neighbours are equal to the stones value.
In the begining, you may place as many one stones as you like anywhere on the grid.
Then you place as many incrementing numbered stones onto the board.
Given n starting stones, the highest value stone able to be placed is known for n < 7.
See if you can figure out way to place the maximum number of stones!
| 1's placed | Maximum Score |
|---|---|
| 1 | 1 |
| 2 | 16 |
| 3 | 28 |
| 4 | 38 |
| 5 | 49 |
| 6 | 60 |
To reference optimal solutions and mathematical results regarding the game go to the OEIS page
For an education video about the game and its mathematical properties see: Numberphile's video with Niel Sloane
This project was created with typescript, p5.js and built / deployed with parcel / GitHub pages
To run the project first install the dependencies
npm installThen run the project locally:
npm run startTo push new update from master to gh-pages first build the webapp:
# remove old dist directory
# rm -rf dist/*
# push new build to dist directory
npm run buildThen push the built files to deployment-branch:
npx push-dir --dir=dist --branch=deployment-branch