0.1.4 • Published 6 years ago

problemgenerator v0.1.4

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
6 years ago

problemgenerator

Save silly B kids

拯救智障儿童

Install

$ npm i -g problemgenerator

Usage

$ pgen [options] <arguments>
$ pgen -c path-of-configuration

Available Options

  • -p Number of problem (defaults to 30)
  • -o Operator of problem (defaults to 'all', and '+', '-', '*', 'x', '/', '÷', 'pm', 'ms' are also available.)
  • -r Range of operands (defaults to '1,100')
  • -n Number of operands of each problem (defaults to '4,6')
  • -c Path of configuration file
  • -h Show help

Configuration File

A .js or .json file

JSON:

{
	"problemCount": 30,
	"operator": "all",
	"operandsRange": "1,100",
	"operandsCount": "3,8"
}

or JS:

module.exports = {
	problemCount: 30,
	operator: 'all',
	operandsRange: '1,100',
	operandsCount: '3,8'
};
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago