24game-solver 中文文档教程

发布于 3年前 浏览 25 项目主页 更新于 3年前

24 Game Solver

以较少的重复结果解决 24 场比赛。

演示页面

Usage

节点

const solve24game = require('24game-solver');
const result = solve24game([a, b, c, d], goal);

浏览器 solve24game

<script type='text/javascript' src='dist/24game-solver.js'></script>
<script type='text/javascript'>
    var result = solve24game([a, b, c, d], goal);
</script>

API

(nums,goal)

  • nums - An array of numbers between 1 and 13, array length must between 3 and 6.
  • goal - A number between 0 and 99.

Test Case

运行 npm test 运行测试用例。

24 Game Solver

Solve 24 game with less duplicated results.

Demo page

Usage

Node

const solve24game = require('24game-solver');
const result = solve24game([a, b, c, d], goal);

Brwoser

<script type='text/javascript' src='dist/24game-solver.js'></script>
<script type='text/javascript'>
    var result = solve24game([a, b, c, d], goal);
</script>

API

solve24game(nums,goal)

  • nums - An array of numbers between 1 and 13, array length must between 3 and 6.
  • goal - A number between 0 and 99.

Test Case

Run npm test to run the test cases.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文