summaryrefslogtreecommitdiff
path: root/puzzle_specs_v1.md
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-08-02 22:52:27 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-08-02 22:52:27 +0500
commitd1a1ebd54cabc6646f20f6b1b341751a2bf3c2ec (patch)
tree71f7d5d2d0c5960b25e95f99981c5a2c330302be /puzzle_specs_v1.md
parent5af3200076b72e2f9f19c202ab9d2a7364004017 (diff)
puzzle parser
Diffstat (limited to 'puzzle_specs_v1.md')
-rw-r--r--puzzle_specs_v1.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/puzzle_specs_v1.md b/puzzle_specs_v1.md
index ff9b9bc..360b9a3 100644
--- a/puzzle_specs_v1.md
+++ b/puzzle_specs_v1.md
@@ -2,7 +2,7 @@
## Puzzles
1. Termins
- The field is depicted as `(Data type) Name`
+ The field is depicted as `(Data type) Name`.
u8 is 8-bit integer (uint8_t in C).
u32 is a 32-bit integer (uint32_t in C).
string is a null-terminated ASCII byte array.
@@ -10,12 +10,12 @@
2. Puzzles are stored in binary format. The specification for it is as follows:
+----------------------------+---------------+----------------------+
| (u8) Specification version | (string) Name | (string) Description |
- +----------------------------+---------------+----------------------+
+ +----------------------------+-----+---------+----------------------+
| (string) Initial code | (u32) Test count |
+----------------------------------+--------------------------------+
| (Test) Test value |
| ... |
- +--------------------------------------+----------------------------+
+ +-------------------------------------------------------------------+
The amount of the tests must be the exact same as specified in test counter.
2. The test is a following struct:
@@ -36,7 +36,7 @@
+----------------+--------------+
4.1. The type is defined by the Type code. The following types are supported:
- +------+------+-------------------------------+
+ +------+---------+----------------------------+
| Code | Name | Value size |
+------+---------+----------------------------+
| 0 | Null | 0 bytes |
@@ -49,7 +49,7 @@
+------+---------+----------------------------+
| 4 | List | 4 bytes (See the item 3.2) |
+------+---------+----------------------------+
-
+
4.2 The list value descriptor contains the amount of elements in the list.
The following N Value descriptors will be treated as list elements.
- That is the only case where the expected output will contain more than one value
+ That is the only case where the expected output will contain more than one value.