24_game_resolver 中文文档教程
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.
你可能也喜欢
- @0xdhrv/prettier-config 中文文档教程
- @30-seconds/integration-tools 中文文档教程
- @3kles/kles-odin-mi 中文文档教程
- @3yourmind/vue-use-tippy 中文文档教程
- @4cadia/janus-indexer-smartcontract 中文文档教程
- @4everlink/cli 中文文档教程
- @6thquake/react-properties 中文文档教程
- @8base-react/forms 中文文档教程
- @abancu/explorer-plugin-eth-memento 中文文档教程
- @abbychau/svelma 中文文档教程