codecombat/headless_client/test.js

42 lines
40 KiB
JavaScript
Raw Normal View History

module.exports = {
2015-02-12 19:06:27 -05:00
"messageGenerated": 1423774918949,
2014-08-29 20:18:03 -04:00
"sessions": [{
2015-02-12 19:06:27 -05:00
"sessionID": "54dd0fc8f927955405a61620",
"submitDate": "2015-02-12T20:56:02.631Z",
"team": "humans",
2014-08-29 20:18:03 -04:00
"transpiledCode": {
2015-02-12 19:06:27 -05:00
"hero-placeholder": {
"plan": "var __interceptThis=(function(){var G=this;return function($this,sandbox){if($this==G){return sandbox;}return $this;};})();\nreturn (function(__global) {\n var tmp0,\n tmp1;\n tmp1 = function() {\n var __argIndexer,\n __gentmp2,\n __resulttmp2,\n _yieldValue,\n self,\n tmp2,\n tmp22,\n tmp3,\n tmp4;\n var $arguments = arguments;\n return $traceurRuntime.generatorWrap(function($ctx) {\n while (true)\n switch ($ctx.state) {\n case 0:\n 'use strict';\n $ctx.state = 20;\n break;\n case 20:\n _aether.logCallStart(_aether._userInfo);\n $ctx.state = 22;\n break;\n case 22:\n ;\n $ctx.state = 24;\n break;\n case 24:\n for (__argIndexer = 0; __argIndexer < $arguments.length; ++__argIndexer)\n $arguments[__argIndexer] = _aether.createAPIClone(_aether, $arguments[__argIndexer]);\n $ctx.state = 26;\n break;\n case 26:\n self = _aether.createAPIClone(_aether, __interceptThis(this, __global));\n $ctx.state = 28;\n break;\n case 28:\n tmp3 = function() {\n var __argIndexer,\n __yieldCount0,\n _yieldValue,\n enemy,\n tmp10,\n tmp11,\n tmp12,\n tmp13,\n tmp14,\n tmp15,\n tmp16,\n tmp17,\n tmp18,\n tmp19,\n tmp20,\n tmp21,\n tmp5,\n tmp8,\n tmp9;\n var $arguments = arguments;\n return $traceurRuntime.generatorWrap(function($ctx) {\n while (true)\n switch ($ctx.state) {\n case 0:\n ;\n $ctx.state = 129;\n break;\n case 129:\n for (__argIndexer = 0; __argIndexer < $arguments.length; ++__argIndexer)\n $arguments[__argIndexer] = _aether.createAPIClone(_aether, $arguments[__argIndexer]);\n $ctx.state = 131;\n break;\n case 131:\n _aether.logStatementStart([{\n ofs: 42,\n row: 2,\n col: 6\n }, {\n ofs: 46,\n row: 2,\n col: 10\n }]);\n $ctx.state = 133;\n break;\n case 133:\n tmp5 = true;\n $ctx.state = 135;\n break;\n case 135:\n _aether.logStatement([{\n ofs: 42,\n row: 2,\n col: 6\n }, {\n ofs: 46,\n row: 2,\n col: 10\n }], _aether._userInfo, false);\n $ctx.state = 137;\n break;\n case 137:\n if (tmp5) {\n $ctx.state = 115;\n break;\n } else {\n $ctx.state = 3;\n break;\n }\n case 115:\n __yieldCount0 = 0;\n $ctx.state = 116;\n break;\n case 116:\n tmp8 = self;\n $ctx.state = 85;\n break;\n case 85:\n tmp9 = 'findNearestEnemy';\n $ctx.state = 87;\n
}
},
2015-02-12 19:06:27 -05:00
"submittedCodeLanguage": "python",
"teamSpells": {
2015-02-12 19:06:27 -05:00
"humans": ["hero-placeholder/plan"],
"ogres": ["hero-placeholder-1/plan"]
},
2015-02-12 19:06:27 -05:00
"levelID": "dueling-grounds",
"creator": "54d520a09136715505d15297",
"totalScore": 40.47590719392207
2014-08-29 20:18:03 -04:00
}, {
2015-02-12 19:06:27 -05:00
"sessionID": "548881e93ab3c0ba091631b0",
"submitDate": "2014-12-10T17:27:26.031Z",
"team": "ogres",
2014-08-29 20:18:03 -04:00
"transpiledCode": {
2015-02-12 19:06:27 -05:00
"hero-placeholder-1": {
"plan": "var __interceptThis=(function(){var G=this;return function($this,sandbox){if($this==G){return sandbox;}return $this;};})();\nreturn (function(__global) {\n var tmp0,\n tmp1;\n tmp1 = function() {\n var __argIndexer,\n __yieldCount0,\n _yieldValue,\n tmp10,\n tmp11,\n tmp12,\n tmp13,\n tmp14,\n tmp15,\n tmp16,\n tmp17,\n tmp18,\n tmp19,\n tmp2,\n tmp20,\n tmp21,\n tmp22,\n tmp23,\n tmp24,\n tmp25,\n tmp26,\n tmp27,\n tmp28,\n tmp29,\n tmp30,\n tmp31,\n tmp32,\n tmp33,\n tmp34,\n tmp35,\n tmp36,\n tmp5,\n tmp6,\n tmp7,\n tmp8,\n tmp9;\n var $arguments = arguments;\n return $traceurRuntime.generatorWrap(function($ctx) {\n while (true)\n switch ($ctx.state) {\n case 0:\n 'use strict';\n $ctx.state = 158;\n break;\n case 158:\n _aether.logCallStart(_aether._userInfo);\n $ctx.state = 160;\n break;\n case 160:\n ;\n $ctx.state = 162;\n break;\n case 162:\n for (__argIndexer = 0; __argIndexer < $arguments.length; ++__argIndexer)\n $arguments[__argIndexer] = _aether.createAPIClone(_aether, $arguments[__argIndexer]);\n $ctx.state = 164;\n break;\n case 164:\n _aether.logStatementStart([{\n ofs: 44,\n row: 2,\n col: 7\n }, {\n ofs: 48,\n row: 2,\n col: 11\n }]);\n $ctx.state = 166;\n break;\n case 166:\n tmp2 = true;\n $ctx.state = 168;\n break;\n case 168:\n _aether.logStatement([{\n ofs: 44,\n row: 2,\n col: 7\n }, {\n ofs: 48,\n row: 2,\n col: 11\n }], _aether._userInfo, false);\n $ctx.state = 170;\n break;\n case 170:\n if (tmp2) {\n $ctx.state = 144;\n break;\n } else {\n $ctx.state = 3;\n break;\n }\n case 144:\n __yieldCount0 = 0;\n $ctx.state = 145;\n break;\n case 145:\n tmp7 = _aether.createAPIClone(_aether, __interceptThis(this, __global));\n $ctx.state = 112;\n break;\n case 112:\n tmp8 = 'findNearestEnemy';\n $ctx.state = 114;\n break;\n case 114:\n _aether.logStatementStart([{\n ofs: 152,\n row: 5,\n col: 4\n }, {\n ofs: 184,\n row: 5,\n col: 36\n }]);\n $ctx.state = 116;\n break;\n case 116:\n tmp6 = _aether.convertToNativeType(_aether.createAPIClone(_aether, tmp7[tmp8]()));\n $ctx.state = 118;\n break;\n case 118:\n _aether.logStatement([{\n ofs: 152,\n row: 5,\n col: 4\n }, {\n ofs: 184,\n row: 5,\n col: 36\n }], _aether._userInfo, false);\n $ctx.state = 120;\n break;\n case 120:\n if (_aether._shouldYield) {\n $ctx.state = 11;\n break;\n } else {\n $ctx.state = 18;\n break;\n }\n case 11:\n _yieldValue = _aether._shouldYield;\n $ctx.state = 12;\n break;\n case 12:\n _aether._shouldYield = false;\n $ctx.state = 14;\n break;\n case 14:\n if (this.onAetherYield) {\n this.onAetherYield
}
},
2014-08-29 20:18:03 -04:00
"submittedCodeLanguage": "javascript",
"teamSpells": {
2015-02-12 19:06:27 -05:00
"humans": ["hero-placeholder/plan"],
"ogres": ["hero-placeholder-1/plan"]
},
2015-02-12 19:06:27 -05:00
"levelID": "dueling-grounds",
"creator": "5481b0fab5cf8a5f052ab62c",
"creatorName": "Lukucio Skriaudejas",
"totalScore": 29.794723041533086
}],
"taskID": "54dd14c68bf17b9b05a92592",
"receiptHandle": "cbb4bc48f52de5f52dc38303ed960c0fc856ae61"
2014-08-29 20:18:03 -04:00
}