UNPKG
@haelp/teto
Version:
latest (4.2.7)
4.2.7
4.2.6
4.2.5
4.2.4
4.2.3
4.2.2
4.2.1
4.1.1
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.3.14
3.3.13
3.3.12
3.3.11
3.3.10
3.3.9
3.3.8
3.3.7
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.6
3.1.5
3.1.4
3.1.2
3.1.1
3.1.0
3.0.14
3.0.13
3.0.12
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.6.3
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.3.1
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.1
1.2.1
1.2.0
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.0.6
1.0.5
1.0.3
1.0.2
1.0.0
A typescript-based controllable TETR.IO client.
triangle.haelp.dev
halp1/triangle
@haelp/teto
/
src
/
engine
/
queue
/
rng
/
bag7.ts
8 lines
(6 loc)
•
221 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
RNG
}
from
"../../utils"
;
import
{
Mino
}
from
"../types"
;
export
const
bag7
= (
seed
:
number
) => {
const
gen =
new
RNG
(seed);
return
() =>
gen.
shuffleArray
([
"z"
,
"l"
,
"o"
,
"s"
,
"i"
,
"j"
,
"t"
]
as
Mino
[]); };