ToonTalk Tours

These tours are a work-in-progress where the idea is that that robots have been trained to give tours. Here is one that demonstrates the training of a robot to count.

{ "semantic": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1" }, "view": { "frontside_width": 76, "frontside_height": 55, "frontside_left": 57, "frontside_top": 82, "drag_x_offset": 19, "drag_y_offset": 46 }, "version": 1 }
{ "semantic": { "type": "box", "size": 2, "contents": [ null, null ], "horizontal": true }, "view": { "frontside_width": 164, "frontside_height": 68, "frontside_left": 268, "frontside_top": 53, "backside_geometry": { "x_scale": 1, "y_scale": 1, "original_width": 171, "original_height": 39 }, "drag_x_offset": 68, "drag_y_offset": 66 }, "version": 1 }
{ "semantic": { "type": "nest", "contents": [] }, "view": { "frontside_width": 116, "frontside_height": 141 }, "version": 1 }
{ "semantic": { "type": "scale", "size": 2, "contents": [ null, null ], "horizontal": true }, "view": { "frontside_width": 123, "frontside_height": 91, "frontside_left": 268, "frontside_top": 53, "backside_geometry": { "x_scale": 1, "y_scale": 1, "original_width": 123, "original_height": 91 }, "drag_x_offset": 68, "drag_y_offset": 66 }, "version": 1 }
{ "semantic": { "type": "sensor", "contents": [], "guid": "sensor sensor", "waiting_robots": [], "event_name": "keydown", "attribute": "key" }, "view": { "frontside_width": 116, "frontside_height": 98, "frontside_left": 6, "frontside_top": 6, "drag_x_offset": 48, "drag_y_offset": 50 }, "version": 1 }
{"semantic":{"type":"robot","body":{"type":"body","steps":[],"run_once":false}}, "view": {"drag_x_offset":31,"drag_y_offset":48}}
{ "semantic": { "type": "wand" }, "view": { "frontside_width": 191, "frontside_height": 31, "frontside_left": 6, "frontside_top": 6 }, "version": 1 }
{ "semantic": { "type": "vacuum" }, "view": { "frontside_width": 123, "frontside_height": 45, "frontside_left": 6, "frontside_top": 6 }, "version": 1 }
This will be replaced by a work area containing 2 things: a robot, and an element. top level widget
{ "semantic": { "type": "top_level", "backside_widgets": [ { "widget": { "semantic": { "type": "robot", "frontside_conditions": { "type": "top_level" }, "body": { "type": "body", "steps": [ { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "robot", "frontside_conditions": { "type": "top_level" }, "body": { "type": "body", "steps": [ { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1", "format": "mixed_number", "is_backside": true } }, "additional_info": { "time": 2954 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "path.to_entire_context", "is_backside": true }, "additional_info": { "left_offset_fraction": 0.024366471734892786, "top_offset_fraction": 0.06638115631691649, "time": 815 } }, { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1", "format": "mixed_number", "is_backside": true } }, "additional_info": { "time": 2077 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "time": 2583 } }, { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1", "format": "mixed_number", "is_backside": true } }, "additional_info": { "time": 1984 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "time": 1960 } }, { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1", "format": "mixed_number", "is_backside": true } }, "additional_info": { "time": 1577 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "time": 1960 } }, { "type": "robot_action", "action_name": "open the backside", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "time": 2134 } }, { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "robot", "body": { "type": "body", "steps": [] }, "name": "#3", "is_backside": true } }, "additional_info": { "time": 2728 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "newly_created_widgets_path", "index": 0, "is_backside": true }, "additional_info": { "left_offset_fraction": 0.4509090909090909, "top_offset_fraction": 0.415, "time": 1077 } }, { "type": "robot_action", "action_name": "start training", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "time": 49 } }, { "type": "robot_action", "action_name": "train", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "step": { "json": { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "number", "operator": "+", "numerator": "1", "denominator": "1", "format": "mixed_number", "is_backside": true } }, "additional_info": { "time": 2494 } } }, "time": 2472 } }, { "type": "robot_action", "action_name": "train", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "step": { "json": { "type": "robot_action", "action_name": "drop it on", "path": { "type": "path.to_entire_context" }, "additional_info": { "time": 2018 } } }, "time": 2017 } }, { "type": "robot_action", "action_name": "stop training", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "time": 2937 } }, { "type": "robot_action", "action_name": "change whether erased", "path": { "type": "path_to_robot_conditions", "path_to_robot": { "type": "newly_created_widgets_path", "index": 4 }, "path_within_conditions": "entire_condition" }, "additional_info": { "time": 5409 } }, { "type": "robot_action", "action_name": "click the button of", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "button_selector": ".toontalk-settings-backside-button", "time": 1949 } }, { "type": "robot_action", "action_name": "edit", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "setter_name": "set_description", "argument_1": "a robot who counts", "toString": "change the description to 'a robot who counts'' of the robot", "button_selector": ".toontalk-description-input", "time": 1288 } }, { "type": "robot_action", "action_name": "edit", "path": { "type": "newly_created_widgets_path", "index": 4 }, "additional_info": { "setter_name": "set_name", "argument_1": "Add 1", "toString": "change the name to 'Add 1'' of the robot", "button_selector": ".toontalk-name-input", "time": 2809 } }, { "type": "robot_action", "action_name": "click the button of", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "button_selector": ".toontalk-green-flag", "time": 2137 } }, { "type": "robot_action", "action_name": "close the backside", "path": { "type": "newly_created_widgets_path", "index": 0 }, "additional_info": { "time": 16653 } } ] }, "name": "#2", "speed": 0, "description": "a robot that demonstrates training another robot to count", "is_backside": true } }, "additional_info": { "time": 10556 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "path.to_entire_context", "is_backside": true }, "additional_info": { "left_offset_fraction": 0.23655275341130605, "top_offset_fraction": 0.562399625267666, "time": 1006 } }, { "type": "robot_action", "action_name": "pick up", "path": { "type": "path.to_resource", "resource": { "type": "element", "html": "demo%201.mp3%20sound", "attributes": [], "attribute_values": [], "sound_effect": "sounds/demo%201.mp3", "is_backside": true } }, "additional_info": { "time": 8209 } }, { "type": "robot_action", "action_name": "drop it on", "path": { "type": "path.to_entire_context", "is_backside": true }, "additional_info": { "left_offset_fraction": 0.0935672514619883, "top_offset_fraction": 0.9182280513918629, "time": 1001 } }, { "type": "robot_action", "action_name": "open the backside", "path": { "type": "newly_created_widgets_path", "index": 1 }, "additional_info": { "time": 2534 } }, { "type": "robot_action", "action_name": "click the button of", "path": { "type": "newly_created_widgets_path", "index": 1 }, "additional_info": { "button_selector": ".toontalk-play-sound-effect-button", "time": 2337 } }, { "type": "robot_action", "action_name": "close the backside", "path": { "type": "newly_created_widgets_path", "index": 1 }, "additional_info": { "time": 1691 } }, { "type": "robot_action", "action_name": "click the button of", "path": { "type": "path.to_entire_context" }, "additional_info": { "button_selector": ".toontalk-green-flag", "time": 5497 } } ] }, "run_once": true, "name": "Tour 1", "speed": 0, "description": "a robot that runs another robot and starts playing some recorded narration" }, "view": { "frontside_width": 66, "frontside_height": 110, "frontside_left": 932.3125, "frontside_top": 327.3125, "backside_geometry": { "x_scale": 1, "y_scale": 1.8549999999999989, "original_width": 550, "original_height": 200 }, "saved_width": 66, "saved_height": 110, "backside": false }, "version": 1 } }, { "widget": { "semantic": { "type": "element", "html": "Click%20the%20green%20flag%20to%20start%20the%20Tour.", "attributes": [], "attribute_values": [] }, "view": { "frontside_left": 671.203125, "frontside_top": 16.015625, "saved_width": 313, "saved_height": 26, "backside": false }, "version": 1 } } ] }, "view": { "background_color": "rgb(245, 240, 240)", "backside_width": 1026, "backside_height": 230, "backside_left": 8, "backside_top": 184.1875, "backside": true, "drag_x_offset": 738, "drag_y_offset": 266.8125 }, "version": 1 }