リファレンス
問題の情報
import { … } from "@johnmorrisdotca/suido/levels-info";
最小化と gzip 圧縮をしたサイズは 4.6 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
EVERYTHING ABOUT SUIDO'S LEVELS BUT THE LEVELS: @johnmorrisdotca/suido/levels-info. The sizes and how many levels each has, the
blocks, which levels are open, a row read, what a level teaches and how hard it is marked, and the level of the day: all of it
read without loading a board, and with no way to load one. /levels is this and the loader that fetches a size's boards, and
a bundle that carries the loader carries every size's data with it, so a server that only needs to know how many levels there
are, or which block opens next, imports this instead.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
blockOf | 関数 | The block a level is in, from 1. |
blockRange | 関数 | A block's first and last level, the last no further than the size has. |
blocksIn | 関数 | How many blocks a size of count levels has. |
dailySuidoLevel | 関数 | The level of the day at a size: a whole number from 1 to that size's count of levels, or null for a size there are no levels of. |
declaredTwists | 関数 | The twists a row declares, in the order the levels teach them. |
firstUnsolvedLevel | 関数 | The lowest level of a set of count not yet solved, or null when every level of it is. |
firstUnsolvedSuidoBigLevel | 関数 | The lowest level not yet solved, or null when every level of the set is. |
firstUnsolvedSuidoLevel | 関数 | The lowest level of a size not yet solved, or null when every level of it is (firstUnsolvedLevel). |
isSuidoBigLevel | 関数 | Whether a number is a level of the big-pieces set. |
isSuidoDay | 関数 | Whether a text is a real date written YYYY-MM-DD: 2026-02-30 is not. |
isSuidoLevel | 関数 | Whether a number is a level this size has. |
levelAnswer | 関数 | A row's answer as a code, the board's own code with every piece facing as the answer has it: what checkSuidoAnswer is given. |
levelBoard | 関数 | The board a row stands for, or null for a row whose code is not a board. |
LevelRow | 型 | One level: its board as a code (code.ts), its answer as one digit a cell, and its twists. |
levelSolution | 関数 | The pieces of a row's answer, each facing as the answer has it; null for a row that is not a board and its turns. |
nextLevel | 関数 | The level to open on in a set of count: the first open one not yet solved, or the last open one when every open level is solved. |
nextSuidoBigLevel | 関数 | The level to open on: the first open one not yet solved. |
nextSuidoLevel | 関数 | The level of a size to open on (nextLevel). |
openLevels | 関数 | The levels that are open of a set of count levels, given the ones solved: the first block of sixteen always, and each block after it once every level of the block before is solved. |
openSuidoBigLevels | 関数 | How many levels of the set are open, given the ones solved: the first block of sixteen, and each block after it once the block before is all solved. |
openSuidoLevels | 関数 | The levels of a size that are open, given the ones solved (openLevels). |
sizeOf | 関数 | The width and height of a size. |
SUIDO_BIG_BLOCKS | 定数 | How many blocks of sixteen the set has. |
SUIDO_BIG_COUNT | 定数 | How many levels the big-pieces set has: four blocks of sixteen, each level with big pieces in it, on boards of many sizes (bigLevels.ts). |
SUIDO_BIG_PIECES | 定数 | The number of big pieces in each big-piece level, in level order. |
SUIDO_BIG_SCORES | 定数 | The rounded difficulty scores of the big-piece levels, in level order. |
SUIDO_BIG_SIZES | 定数 | WHAT IS KNOWN OF EVERY BIG-PIECES LEVEL WITHOUT ITS BOARD: the size of its board, how hard it is across the whole set (1 to 100, bigDifficulty.ts), the twists it has and how many big pieces it has among its ordinary ones, in level order, so a page lists the set and a server names a level's size without loading sixty-four boards. |
SUIDO_BIG_TWISTS | 定数 | The declared twist names of the big-piece levels, in level order. |
SUIDO_BLOCK | 定数 | SUIDO'S BLOCKS: its levels come sixteen at a time, as Tsunagi's do. |
SUIDO_DAILY_STRIDE | 定数 | Each day moves this many levels along a size's ladder, round to the start when it runs out. |
SUIDO_LEVEL_COUNTS | 定数 | How many levels each size has, read without loading the size: whole blocks of sixteen (levelBlocks.ts). |
SUIDO_SIZES | 定数 | The square sizes, 5×5 to 14×14, then three pipe shapes (long boards, 5×7, 6×10 and 8×14), then the huge boards: 20×20, 28×28 and the long 20×50, which have sixty-four levels each, not two hundred and fifty-six. |
suidoBand | 関数 | Which third of a size a level sits in: its first third easy, its middle medium, its last hard. |
SuidoBand | 型 | The third of a size a level sits in. |
suidoBigBand | 関数 | Which third of the set a level sits in: its first third easy, its middle medium, its last hard. |
suidoBigMarks | 関数 | A level's difficulty as 1 to 5, its score in steps of twenty, or null for a number that is no level. |
suidoBigPieces | 関数 | How many big pieces a level has among its ordinary ones, and the share of its board they cover: { count: 3, share: 0.24 } is three 2×2 pieces, twelve cells, on a board of fifty. |
suidoBigRole | 関数 | A level's part in its block's lesson (the 15th level of a block teaches what is new, the 16th tests it), or null for a level that has none. |
suidoBigScore | 関数 | How hard a level is across the whole set, 1 to 100, or null for a number that is no level. |
suidoBigSize | 関数 | The size of a level's board, "7x7", or null for a number that is no level. |
suidoBigTwists | 関数 | The twists a level has, in the order the levels teach them: big-pieces on every one, and blocks that turn, a second pump, walls, locked pieces or wrap-around edges on some. |
suidoDay | 関数 | The day a moment falls on, in UTC, or the same day if it is already written as one. |
SuidoDay | 型 | A calendar date, YYYY-MM-DD. |
suidoMarks | 関数 | A level's measured difficulty, 1 (easiest) to 5, or null for a level the marks do not have: read without loading the size's boards. |
suidoRole | 関数 | A level's part in its block's lesson, from the data the level script wrote (marks.data.ts), without its size's boards; null for none. |
SuidoSize | 型 | A size of board, as its code writes it: its width, an x, its height. |
turnsOf | 関数 | The answer to a board as one digit a cell: how many quarter turns clockwise each piece needs, the fewest. |
twistRole | 関数 | A level's part in its block's lesson, or null for a level that has none (1 to 14 of a block, or a 15th or 16th with no twist). |
TwistRole | 型 | Where a level sits in its block's lesson: its 15th teaches the twist, its 16th tests it. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。