block by andrewxhill 7c4b54a12822d8cb5c4f7e9675513a98

7c4b54a12822d8cb5c4f

Setup a new game of cmd-line tag!

Create a new game

sh new-game.sh

sh new-game.sh "Game 1"

Output

{
  "block_count": 1,
  "head": "QmQEPTjFeugPFuJYVCVpLhYNJnxemv2AdAi9SLmrKD7nME",
  "head_block": {
    "author": "12D3KooWFq4GuoQBMkXSrVDePuhWpFn2VD6WpxdVgshBzTHyHfdb",
    "date": "2019-06-10T20:20:42.195264Z",
    "id": "QmQEPTjFeugPFuJYVCVpLhYNJnxemv2AdAi9SLmrKD7nME",
    "parents": [],
    "thread": "12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG",
    "type": "JOIN",
    "user": {
      "address": "P5J8iTwJHZKtEWr5udeSc1KKoSAZsxPX7UjreoE5d4VYKCsG",
      "name": "P5J8iTw"
    }
  },
  "id": "12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG",
  "initiator": "P5J8iTwJHZKtEWr5udeSc1KKoSAZsxPX7UjreoE5d4VYKCsG",
  "key": "textile-cmd-line-tag-v0.0-game_1",
  "name": "Game 1",
  "peer_count": 1,
  "schema": "QmcSccsSZPZW4GkXSAqUpyvKWPxGGuNcQqPjpbPHBPqPL8",
  "schema_node": {
    "json_schema": {
      "description": "Possible events in cmd line tag.",
      "properties": {
        "event": {
          "description": "event type identifier",
          "type": "string"
        },
        "extra": {
          "description": "extra information",
          "type": "string"
        },
        "target": {
          "description": "peer-id of that the event modifies",
          "type": "string"
        }
      },
      "required": [
        "event"
      ],
      "title": "CMD Line Tag Mechanics",
      "type": "object"
    },
    "mill": "/json",
    "name": "cmd-line-tag"
  },
  "sharing": "INVITE_ONLY",
  "sk": "<secret>",
  "state": "LOADED",
  "type": "PUBLIC",
  "whitelist": []
}

Invite a peer

textile invites create --thread="12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG" --address="P69vwxHTh1p5Tv5HrRyUGGzzQLXjUQThNKgGmsvTq1up1nvA"

List peers

textile thread peer -t 12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG

Start the game

sh start-game.sh

Tag the new peer

sh tag-peer.sh

sh tag-peer.sh 12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG P69vwxHTh1p5Tv5HrRyUGGzzQLXjUQThNKgGmsvTq1up1nvA

Are you it?

sh am-i-it.sh

sh am-i-it.sh 12D3KooWRhJkorg7tKrp6qUHjrbCVXLYY5juYLyVhC2Wo6ncZyjG
1. -carson- tagged you
2. you tagged -carson-

Run! -carson- is it!

am-i-it.sh

game-of-tag.json

new-game.sh

start-game.sh

tag-peer.sh