diff options
| author | theborakompanioni <theborakompanioni+github@gmail.com> | 2024-02-28 16:41:40 +0100 |
|---|---|---|
| committer | theborakompanioni <theborakompanioni+github@gmail.com> | 2024-08-12 13:26:23 +0200 |
| commit | e735ef9aeff1e5d18d0dfa7a163b1bdc63ee742e (patch) | |
| tree | 2f9e50c96441ef236186c370ce59e88abce864bb | |
| parent | 653642205e3e807c65b2e9b64f5325c7179c447c (diff) | |
docs(NIP-64): change kind from 30 to 64
| -rw-r--r-- | 64.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -6,7 +6,7 @@ Portable Game Notation | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | This NIP defines `kind:30` notes representing Chess games in [PGN][pgn_specification] format, which can be read by humans and is also supported by most chess software. | 9 | This NIP defines `kind:64` notes representing games in [PGN][pgn_specification] format, which can be read by humans and is also supported by most chess software. |
| 10 | 10 | ||
| 11 | ## Note | 11 | ## Note |
| 12 | 12 | ||
| @@ -18,7 +18,7 @@ The `.content` of these notes is a string representing a [PGN-database][pgn_form | |||
| 18 | 18 | ||
| 19 | ```json | 19 | ```json |
| 20 | { | 20 | { |
| 21 | "kind": 30, | 21 | "kind": 64, |
| 22 | "content": "1. e4 *", | 22 | "content": "1. e4 *", |
| 23 | ... | 23 | ... |
| 24 | } | 24 | } |
| @@ -26,7 +26,7 @@ The `.content` of these notes is a string representing a [PGN-database][pgn_form | |||
| 26 | 26 | ||
| 27 | ```json | 27 | ```json |
| 28 | { | 28 | { |
| 29 | "kind": 30, | 29 | "kind": 64, |
| 30 | "tags": [ | 30 | "tags": [ |
| 31 | ["alt", "Fischer vs. Spassky in Belgrade on 1992-11-04 (F/S Return Match, Round 29)"], | 31 | ["alt", "Fischer vs. Spassky in Belgrade on 1992-11-04 (F/S Return Match, Round 29)"], |
| 32 | ... | 32 | ... |
| @@ -38,12 +38,12 @@ The `.content` of these notes is a string representing a [PGN-database][pgn_form | |||
| 38 | 38 | ||
| 39 | ## Client Behavior | 39 | ## Client Behavior |
| 40 | 40 | ||
| 41 | Clients SHOULD check whether the formatting is valid and all moves comply with chess rules. | ||
| 42 | |||
| 43 | Clients SHOULD display the content represented as chessboard. | 41 | Clients SHOULD display the content represented as chessboard. |
| 44 | 42 | ||
| 45 | Clients SHOULD publish PGN notes in ["export format"][pgn_export_format] ("strict mode", i.e. created by machines) but expect incoming notes to be in ["import format"][pgn_import_format] ("lax mode", i.e. created by humans). | 43 | Clients SHOULD publish PGN notes in ["export format"][pgn_export_format] ("strict mode", i.e. created by machines) but expect incoming notes to be in ["import format"][pgn_import_format] ("lax mode", i.e. created by humans). |
| 46 | 44 | ||
| 45 | Clients SHOULD check whether the formatting is valid and all moves comply with chess rules. | ||
| 46 | |||
| 47 | Clients MAY include additional tags (e.g. like [`"alt"`](https://github.com/nostr-protocol/nips/blob/master/31.md)) in order to represent the note to users of non-supporting clients. | 47 | Clients MAY include additional tags (e.g. like [`"alt"`](https://github.com/nostr-protocol/nips/blob/master/31.md)) in order to represent the note to users of non-supporting clients. |
| 48 | 48 | ||
| 49 | ## Relay Behavior | 49 | ## Relay Behavior |