24points

A module that solves 24 points game puzzle.

Usage no npm install needed!

<script type="module">
  import 4points from 'https://cdn.skypack.dev/24points';
</script>

README

A module that solves 24 points game puzzle.

Usage:

const Game = require('24points')

console.log(Game.solve(3,3,4,11))

The module will return the solution equation as a string. If the puzzle has no solution, it'll return false.