24_game_resolver 中文文档教程

发布于 4年前 浏览 29 更新于 3年前

Description

修改24点扑克游戏计算器的PHP代码,
转换为 JavaScript 模块形式。

输出将是一个 JSON 格式,
这将以解决方案列表(数组),解决方案数量的形式出现。

installation

npm install 24_game_resolver

Example

var solver=require('24_game_resolver')  
solver.calculator(1,2,3,4)

//output will be:  
{  
    input: [ 1, 2, 3, 4 ], //array of input  
    errorCode: 0,  
    count: 84, //count of solutions  
    result: [...] //solution list  
}    

Open source authorization information.

麻省理工学院许可证 (MIT)

版权所有 (c) 2020 Yu Shao-Hung

特此免费授予任何获得此软件和相关文档文件(“软件”)副本的人在不使用软件的情况下处理软件限制,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本的权利,以及允许获得软件的人这样做的权利,但须遵守以下条件:

上述版权声明和本许可声明应包含在本软件的所有副本或重要部分中。

Description

Modify the PHP code of 24 Point Poker Game Calculator,
Converted to JavaScript module form.

The output will be a JSON form,
which will be in form with solution list (array), number of solutions.

installation

npm install 24_game_resolver

Example

var solver=require('24_game_resolver')  
solver.calculator(1,2,3,4)

//output will be:  
{  
    input: [ 1, 2, 3, 4 ], //array of input  
    errorCode: 0,  
    count: 84, //count of solutions  
    result: [...] //solution list  
}    

Open source authorization information.

The MIT License (MIT)

Copyright (c) 2020 Yu Shao-Hung

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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