{
  "format": "automata-studio/workspace",
  "schema": 1,
  "app": "dev",
  "machine": "DFA",
  "config": {
    "sym": {
      "eps": "ε",
      "any": "Σ",
      "blank": "⊔",
      "leftMarker": "⊢",
      "rightMarker": "⊣",
      "stackBottom": "Z",
      "lambda": "λ"
    }
  },
  "sigma": [
    "y",
    "n",
    "l"
  ],
  "stackAlpha": [],
  "outputAlpha": [],
  "tapeCount": 1,
  "states": [
    {
      "id": "s1",
      "x": 140,
      "y": 208,
      "name": "f0"
    },
    {
      "id": "s2",
      "x": 319,
      "y": 255,
      "name": "in"
    },
    {
      "id": "s3",
      "x": 319,
      "y": 160,
      "name": "f1"
    },
    {
      "id": "s4",
      "x": 498,
      "y": 208,
      "name": "f2"
    }
  ],
  "transitions": [
    {
      "id": "t1",
      "from": "s1",
      "to": "s2",
      "symbol": "y"
    },
    {
      "id": "t2",
      "from": "s1",
      "to": "s3",
      "symbol": "n"
    },
    {
      "id": "t3",
      "from": "s3",
      "to": "s2",
      "symbol": "y"
    },
    {
      "id": "t4",
      "from": "s3",
      "to": "s4",
      "symbol": "n"
    },
    {
      "id": "t5",
      "from": "s4",
      "to": "s2",
      "symbol": "y"
    },
    {
      "id": "t6",
      "from": "s2",
      "to": "s1",
      "symbol": "l"
    }
  ],
  "startId": "s1",
  "accepts": [
    "s2"
  ],
  "notes": [],
  "dividers": [],
  "blocks": [],
  "meta": {
    "title": "Three wrong passwords and you are out",
    "blurb": "y is a correct password, n a wrong one, l logging out. Two wrong attempts in a row are tolerated; a third locks the account, which here simply has no edge out. Accepted: histories that end logged in.",
    "inputs": [
      {
        "w": "y",
        "expect": "accept"
      },
      {
        "w": "nnyly",
        "expect": "accept"
      },
      {
        "w": "ylny",
        "expect": "accept"
      },
      {
        "w": "ylylyly",
        "expect": "accept"
      },
      {
        "w": "n",
        "expect": "reject"
      },
      {
        "w": "ynyly",
        "expect": "reject"
      },
      {
        "w": "nlny",
        "expect": "reject"
      },
      {
        "w": "nlylyly",
        "expect": "reject"
      }
    ],
    "library": {
      "author": {
        "login": "thethinkmachine"
      },
      "license": "CC-BY-4.0",
      "tags": [
        "security",
        "protocols",
        "counting"
      ],
      "difficulty": "intro"
    }
  }
}
