123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- {
- "name": "xor",
- "custom_elements": {},
- "new_element": {
- "type": "new",
- "inputs": [
- ""
- ],
- "outputs": [
- ""
- ],
- "inputs_groups": [
- 1
- ],
- "outputs_groups": [
- 1
- ]
- },
- "inputs_number": 2,
- "outputs_number": 1,
- "blocks": {
- "1": {
- "type": "INPUT",
- "id": "INPUT 1",
- "const_id": "1",
- "x": 398.5859375,
- "y": 209,
- "inputs": [],
- "outputs": [
- "x"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [],
- "input_connectors_coordinates": [],
- "output_connectors_coordinates": [
- {
- "x": 576.40625,
- "y": 254
- }
- ]
- },
- "2": {
- "type": "INPUT",
- "id": "INPUT 2",
- "const_id": "2",
- "x": 402.5859375,
- "y": 328,
- "inputs": [],
- "outputs": [
- "x"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [],
- "input_connectors_coordinates": [],
- "output_connectors_coordinates": [
- {
- "x": 580.40625,
- "y": 373
- }
- ]
- },
- "3": {
- "type": "OUTPUT",
- "id": "OUTPUT 1",
- "const_id": "3",
- "x": 1315.625,
- "y": 433,
- "inputs": [
- "x"
- ],
- "outputs": [],
- "outputs_groups": [],
- "inputs_groups": [
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 1360.625,
- "y": 478
- }
- ],
- "output_connectors_coordinates": []
- },
- "4": {
- "type": "NOT",
- "id": "NOT 1",
- "const_id": "4",
- "x": 648.5546875,
- "y": 210,
- "inputs": [
- "x"
- ],
- "outputs": [
- "!x"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 693.546875,
- "y": 255
- }
- ],
- "output_connectors_coordinates": [
- {
- "x": 852.4375,
- "y": 255
- }
- ]
- },
- "5": {
- "type": "NOT",
- "id": "NOT 2",
- "const_id": "5",
- "x": 657.5546875,
- "y": 326,
- "inputs": [
- "x"
- ],
- "outputs": [
- "!x"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 702.546875,
- "y": 371
- }
- ],
- "output_connectors_coordinates": [
- {
- "x": 861.4375,
- "y": 371
- }
- ]
- },
- "6": {
- "type": "AND",
- "id": "AND 1",
- "const_id": "6",
- "x": 971.5390625,
- "y": 419,
- "inputs": [
- "x",
- "y"
- ],
- "outputs": [
- "x && y"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [
- 1,
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 1016.53125,
- "y": 464
- },
- {
- "x": 1016.53125,
- "y": 536
- }
- ],
- "output_connectors_coordinates": [
- {
- "x": 1181.453125,
- "y": 464
- }
- ]
- },
- "7": {
- "type": "OR",
- "id": "OR 1",
- "const_id": "7",
- "x": 640.1796875,
- "y": 447,
- "inputs": [
- "x",
- "y"
- ],
- "outputs": [
- "x || y"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [
- 1,
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 685.171875,
- "y": 492
- },
- {
- "x": 685.171875,
- "y": 564
- }
- ],
- "output_connectors_coordinates": [
- {
- "x": 826.8125,
- "y": 492
- }
- ]
- },
- "8": {
- "type": "OR",
- "id": "OR 2",
- "const_id": "8",
- "x": 944.1796875,
- "y": 232,
- "inputs": [
- "x",
- "y"
- ],
- "outputs": [
- "x || y"
- ],
- "outputs_groups": [
- 1
- ],
- "inputs_groups": [
- 1,
- 1
- ],
- "input_connectors_coordinates": [
- {
- "x": 989.171875,
- "y": 277
- },
- {
- "x": 989.171875,
- "y": 349
- }
- ],
- "output_connectors_coordinates": [
- {
- "x": 1130.8125,
- "y": 277
- }
- ]
- }
- },
- "wires": {
- "0": {
- "id": 0,
- "from_block_const_id": "1",
- "to_block_const_id": "4",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 576.40625,
- "y": 254
- },
- "to_point": {
- "x": 693.546875,
- "y": 255
- }
- },
- "1": {
- "id": 1,
- "from_block_const_id": "2",
- "to_block_const_id": "5",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 580.40625,
- "y": 373
- },
- "to_point": {
- "x": 702.546875,
- "y": 371
- }
- },
- "2": {
- "id": 2,
- "from_block_const_id": "2",
- "to_block_const_id": "7",
- "from_output_id": 0,
- "to_input_id": 1,
- "from_point": {
- "x": 580.40625,
- "y": 373
- },
- "to_point": {
- "x": 685.171875,
- "y": 564
- }
- },
- "3": {
- "id": 3,
- "from_block_const_id": "1",
- "to_block_const_id": "7",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 576.40625,
- "y": 254
- },
- "to_point": {
- "x": 685.171875,
- "y": 492
- }
- },
- "4": {
- "id": 4,
- "from_block_const_id": "7",
- "to_block_const_id": "6",
- "from_output_id": 0,
- "to_input_id": 1,
- "from_point": {
- "x": 826.8125,
- "y": 492
- },
- "to_point": {
- "x": 1016.53125,
- "y": 536
- }
- },
- "5": {
- "id": 5,
- "from_block_const_id": "8",
- "to_block_const_id": "6",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 1130.8125,
- "y": 277
- },
- "to_point": {
- "x": 1016.53125,
- "y": 464
- }
- },
- "6": {
- "id": 6,
- "from_block_const_id": "6",
- "to_block_const_id": "3",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 1181.453125,
- "y": 464
- },
- "to_point": {
- "x": 1360.625,
- "y": 478
- }
- },
- "7": {
- "id": 7,
- "from_block_const_id": "5",
- "to_block_const_id": "8",
- "from_output_id": 0,
- "to_input_id": 1,
- "from_point": {
- "x": 861.4375,
- "y": 371
- },
- "to_point": {
- "x": 989.171875,
- "y": 349
- }
- },
- "8": {
- "id": 8,
- "from_block_const_id": "4",
- "to_block_const_id": "8",
- "from_output_id": 0,
- "to_input_id": 0,
- "from_point": {
- "x": 852.4375,
- "y": 255
- },
- "to_point": {
- "x": 989.171875,
- "y": 277
- }
- }
- },
- "tests": [
- [
- 0,
- 0,
- 0
- ],
- [
- 1,
- 1,
- 0
- ],
- [
- 1,
- 0,
- 1
- ],
- [
- 0,
- 1,
- 1
- ]
- ]
- }
|