Sovereign Website
Padel UK hub
Notation

padel-play/1: a notation for one padel point

A play is one JSON object. It describes who is on court, where each player and the ball are at chosen moments ("keys"), and what happens to the ball at each moment. The studio fills in everything between the keys. The same text is published at https://padel.sport.sovereignweb.site/studio/notation/.

The court

Metres, seen from above.

The object

{
  "notation": "padel-play/1",
  "title": "The lob to take the net",
  "summary": "One sentence.",
  "notes": "The coach's notes, plain text, paragraphs split by a blank line.",
  "source": "Where the idea comes from. Library plays say: general coaching knowledge, not a claim about a real player.",
  "players": [
    { "id": "A1", "team": "A", "label": "A1" },
    { "id": "B1", "team": "B", "label": "B1" }
  ],
  "keys": [
    { "t": 0, "p": { "A1": [2.5, 18], "B1": [2.8, 7] },
      "ball": { "x": 2.8, "y": 7.3, "z": 1, "ev": "hit", "by": "B1", "shot": "volley" },
      "caption": "Shown from this moment on." },
    { "t": 1.6, "ball": { "x": 7.5, "y": 2, "z": 0, "ev": "bounce", "arc": 6 } }
  ]
}
FieldRequiredMeaning
notationyesAlways "padel-play/1".
title, summary, notes, sourcenoText.
id, level, tags, explanationnoUsed by the library. explanation is a list of paragraphs.
playersyesOne entry per player: id (letters and digits, up to 12), team ("A" or "B"), label (up to 3 characters are drawn).
keysyesMoments, in time order.
keys[].tyesSeconds from the start.
keys[].pnoPositions at this moment, { id: [x, y] }. A key may move only some players.
keys[].ballnoThe ball at this moment: x, y, z; ev one of hit, bounce, wall, net, out; by (a player id, for a hit); shot (free text, such as lob, bandeja, chiquita); arc.
keys[].captionnoA line of text shown from this moment until the next caption.

How the studio fills the gaps

In a link

A play can travel inside a link: https://padel.sport.sovereignweb.site/studio/play/#p=<data>. The data is the JSON, compressed with raw deflate and written in base64url, after a z; or, where the browser cannot compress, the JSON in base64url after a j. The part after # is never sent to the server.

Versions

Anything a later version adds will be optional, so a padel-play/1 play keeps working. A change that breaks that rule gets a new name (padel-play/2).

Every play in the tactics library is written in this notation. The studio's code that reads it is padel.js.