0.2.9 • Published 4 years ago

scrambler-util v0.2.9

Weekly downloads
16
License
GPL-3.0
Repository
github
Last release
4 years ago

scrambler-util

This is the scramble generator module used in the popular scrambler Discord bot. Features include the full range of random state scramblers for WCA events (where applicable) and an expanding collection of non-WCA puzzles.

Installation and Usage

scrambler-util requires Node.js, and should be compatible on most versions but has only been extensively tested on v12+.

Installation

$ npm install -g scrambler-util

Usage

Syntax

const cube = require('scrambler-util');
const arr = cube(type, count, args);

Basic Example

const cube = require('scrambler-util');
const scrambleArr = cube('333', 5); // returns 5 skewb scrambles in an array
console.log(scrambleArr.join('\n'));

Additional Arguments

const cube = require('scrambler-util');
// Must pass a count argument when passing arguments
const bld4 = cube('444', 1, 'bld');
const fmc = cube('333', 3, 'fmc');

For a complete and updated events list, see ./util/aliases.json

Available Events

EventTypeNotes
2x2random state
3x3random state
4x4random statejs implementation from cstimer
5x5random moves5x5+ tnoodle scrambles are also random moves
6x6random moves
7x7random moves
1x1random moves
skewbrandom state
pyraminxrandom state
square-1random state
clockrandom state
redi cuberandom moves
2x2x3random moves
0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.3

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago