Skip to content

start position json #5

@amlwwalker

Description

@amlwwalker

Hey Niels,
Dunno if you saw email, but thought i'd put this here.

If we can agree to the following structure for board layout and moves

{
  "args": {
    "board": {
      "o": {
        "6": 5,
        "8": 3,
        "13": 5,
        "24": 2
      },
      "x": {
        "5": 1,
        "6": 5,
        "8": 3,
        "13": 4,
        "24": 2
      }
    },
    "dice": [
      6,
      4
    ],
    "player": "o"
  },
    "move": {
    "play": [
      {
        "from": "24",
        "to": "20"
      },
      {
        "from": "20",
        "to": "14"
      }
    ]
  }
}

then it will be incredibly straight forward to link our work together.
The above is the board that the move will be applied to. My backend code can then verify the move is indeed legal before allowing the player to continue from the resulting position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions