
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
24game-solver
Advanced tools
Solve 24 game with less duplicated results.
Web based example can be launched from https://frank-deng.github.io/24game-solver/index.html.
Node
var solve24game = require('24game-solver');
/*
The returned result contains all the expressions which calculation result equals the goal.
Parameter a, b, c, d are numbers between 1 and 13
Parameter goal is the expected calculation result, default is 24.
*/
var result = solve24game(a, b, c, d, goal);
Brwoser
<script type='text/javascript' src='24game-solver.js'></script>
<script type='text/javascript'>
/*
The returned result contains all the expressions which calculation result equals the goal.
Parameter a, b, c, d are numbers between 1 and 13
Parameter goal is the expected calculation result, default is 24.
*/
var result = solve24game(a, b, c, d, goal);
</script>
Run npm test to run the test case.
The test will check if both solve24game() and ordinary method have or don't have answer, for each pairs of 4 numbers between 1 and 13, goals within 1 and 99.
After the test finished successfully, it will output how many pairs of 4 numbers out of 1820 pairs have answer for each goals.
The test will take about 7.5 hours to finish.
FAQs
Solve 24 Game with less duplicated results.
The npm package 24game-solver receives a total of 49 weekly downloads. As such, 24game-solver popularity was classified as not popular.
We found that 24game-solver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.