@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
35 lines (34 loc) • 889 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "bag7_1", {
enumerable: true,
get: function() {
return bag7_1;
}
});
const _utils = require("../../utils");
const _types = require("../types");
const bag7_1 = (seed)=>{
const gen = new _utils.RNG(seed);
return ()=>gen.shuffleArray([
_types.Mino.Z,
_types.Mino.L,
_types.Mino.O,
_types.Mino.S,
_types.Mino.I,
_types.Mino.J,
_types.Mino.T,
[
_types.Mino.Z,
_types.Mino.L,
_types.Mino.O,
_types.Mino.S,
_types.Mino.I,
_types.Mino.J,
_types.Mino.T
][Math.floor(gen.nextFloat() * 7)]
]);
};
//# sourceMappingURL=bag7-1.js.map