Skip to content

madeofnumbers/10-CODEPLAY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

10 / CODEPLAY : write code to solve puzzles

About

Example code to interact with madeofnumbers/10, a game where the player slides numbers into each other to make 10s. Once all the numbers have been combined, the player has solved the puzzle.

Examples demo : https://madeofnumbers.com/10/codeplay/


Screenshot of 10 / CODEPLAY examples demo


Examples of Mon10 object methods

See: examples demo


Example : gridSummary()

Uses mon10.getXY() to build a simple summary of the current grid state, including positions of tiles grouped by value.

Script: mon10-codeplay-example-grid-summary.js


Example : randomMoves()

Uses mon10.getXY(), mon10.moveXYD(), mon10.nonzero() and mon10.size() to make entirely random moves with almost no chance of solving a puzzle.

Script: mon10-codeplay-example-random-moves.js


The puzzle game 'madeofnumbers/10' and its editor '10 / MAKER' are ©2024 IOJOE / madeofnumbers. All rights reserved.

'10 / CODEPLAY' examples are open-source under the MIT license ©2024 madeofnumbers

About

Write code to solve puzzles from madeofnumbers.com/10

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published