Skip to content

Instantly share code, notes, and snippets.

@rklancer
Created October 2, 2014 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rklancer/15f26ad1688f89f7240f to your computer and use it in GitHub Desktop.
Save rklancer/15f26ad1688f89f7240f to your computer and use it in GitHub Desktop.
{
"name": "Untitled Document",
"guid": 11,
"components": [
{
"type": "DG.GameView",
"guid": 101,
"componentStorage": {
"currentGameName": "CartWeight",
"currentGameUrl": "http://localhost:8000/CartWeight/",
"_links_": {
"context": {
"type": "DG.DataContextRecord",
"id": 401
}
}
},
"layout": {
"width": 306,
"height": 382,
"left": 5,
"top": 5
}
},
{
"type": "DG.TableView",
"guid": 102,
"componentStorage": {
"_links_": {
"context": {
"type": "DG.DataContextRecord",
"id": 401
}
}
},
"layout": {
"width": 517,
"height": 232,
"left": 315,
"top": 5
}
}
],
"contexts": [
{
"type": "DG.GameContext",
"document": 11,
"guid": 401,
"collections": [
{
"name": "Games",
"areParentChildLinksConfigured": true,
"guid": 601,
"attrs": [
{
"name": "game",
"type": "numeric",
"precision": 0,
"defaultMin": 1,
"defaultMax": 5,
"description": "game number",
"guid": 1001
},
{
"name": "score",
"type": "numeric",
"precision": 0,
"defaultMin": 0,
"defaultMax": 300,
"description": "game score",
"guid": 1002
},
{
"name": "carts",
"type": "numeric",
"precision": 0,
"defaultMin": 0,
"defaultMax": 5,
"description": "how many cart weights were guessed",
"guid": 1003
},
{
"name": "level",
"type": "nominal",
"guid": 1004,
"precision": 2
}
],
"cases": [
{
"guid": 2001,
"values": {
"game": 1,
"score": 500,
"carts": 5,
"level": "Dubuque"
}
},
{
"guid": 2007,
"values": {
"game": 2,
"score": "",
"carts": "",
"level": "Minot"
}
}
]
},
{
"name": "Carts",
"areParentChildLinksConfigured": true,
"parent": 601,
"guid": 602,
"attrs": [
{
"name": "cart",
"type": "numeric",
"precision": 0,
"defaultMin": 1,
"defaultMax": 5,
"description": "which cart in a game",
"guid": 1005
},
{
"name": "bricks",
"type": "numeric",
"precision": 0,
"defaultMin": 0,
"defaultMax": 20,
"description": "how many bricks on the cart",
"guid": 1006
},
{
"name": "weight",
"type": "numeric",
"precision": 1,
"defaultMin": 0,
"defaultMax": 30,
"description": "actual weight of the cart",
"guid": 1007
},
{
"name": "guess",
"type": "numeric",
"precision": 1,
"defaultMin": 0,
"defaultMax": 30,
"description": "your guess for the cart weight",
"guid": 1008
},
{
"name": "points",
"type": "numeric",
"precision": 0,
"defaultMin": 0,
"defaultMax": 100,
"description": "points earned for this cart",
"guid": 1009
},
{
"name": "smBricks",
"type": "numeric",
"precision": 0,
"defaultMin": 0,
"defaultMax": 10,
"description": "how many small bricks on the cart",
"guid": 1010
}
],
"cases": [
{
"parent": 2001,
"guid": 2002,
"values": {
"cart": 1,
"bricks": 16,
"weight": 48,
"guess": 48,
"points": 100,
"smBricks": 0
}
},
{
"parent": 2001,
"guid": 2003,
"values": {
"cart": 2,
"bricks": 12,
"weight": 36,
"guess": 36,
"points": 100,
"smBricks": 0
}
},
{
"parent": 2001,
"guid": 2004,
"values": {
"cart": 3,
"bricks": 9,
"weight": 27,
"guess": 27,
"points": 100,
"smBricks": 0
}
},
{
"parent": 2001,
"guid": 2005,
"values": {
"cart": 4,
"bricks": 5,
"weight": 15,
"guess": 15,
"points": 100,
"smBricks": 0
}
},
{
"parent": 2001,
"guid": 2006,
"values": {
"cart": 5,
"bricks": 3,
"weight": 9,
"guess": 9,
"points": 100,
"smBricks": 0
}
}
]
}
],
"contextStorage": {
"gameName": "CartWeight",
"gameUrl": "http://localhost:8000/CartWeight/",
"gameState": {
"gameNumber": 2,
"currentLevel": "Minot",
"levelsMap": {
"Dubuque": true,
"Ames": true,
"Minot": true
}
}
}
}
],
"appName": "DG",
"appVersion": "1.1",
"appBuildNum": "0266",
"globalValues": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment